Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Shoot when attacked

Author
Message
DocSpoc
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 5th Nov 2009 17:36
Not sure if this is in the right spot, but, oh well. :S

I'm making a game in FPSC, and I want a certain character to shoot the player, only when attacked. What edits to the shoot script would I need to make to achieve this effect?

Bloodshot eyes since 1995.
Can't build game? http://forum.thegamecreators.com/?m=forum_view&t=143035&b=24
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 5th Nov 2009 17:51
this is achievable using project blue. first, set the entity health to something like 100. then use a script to check whether the character's health is less than 100, and if it is, shoot the player.

Migration Discussion Thread: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Piracy Discussion Thread:
http://forum.thegamecreators.com/?m=forum_view&t=142774&b=21
Errant AI
18
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 5th Nov 2009 18:21
Not a hand-holding walkthrough but having...



...in your main script would be a good place to start.

PBUM is awesome but not needed for something so basic.
DocSpoc
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 5th Nov 2009 19:00 Edited at: 5th Nov 2009 20:06
Quote: "Not a hand-holding walkthrough but having...

+ Code Snippet

:shotdamage=1:shootplr



...in your main script would be a good place to start."


Thanks for the pointer.

EDIT: I completed the script. Thanks for the pointer, again.

Bloodshot eyes since 1995.
Can't build game? http://forum.thegamecreators.com/?m=forum_view&t=143035&b=24

Login to post a reply

Server time is: 2024-10-13 05:20:18
Your offset time is: 2024-10-13 05:20:18