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 Scripts / Can i destory enemy entity using trigger zone

Author
Message
Ritik756
9
Years of Service
User Offline
Joined: 22nd Apr 2014
Location:
Posted: 11th Oct 2014 22:47
How can i destory a enemy(s) using trigger zone.
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 16th Oct 2014 02:57
here are 3 ways to do just that

Destroy Entity with Timer



destroyAnyEnity.fpi


DestroyEnitity.fpi


Ritik756
9
Years of Service
User Offline
Joined: 22nd Apr 2014
Location:
Posted: 16th Oct 2014 10:39
Thanks Meows but I need script as following:

Suppose a entity(enemy character) whose name is "e4" is standing somewhere around player, and a trigger zone, when the player walks into trigger zone, this "e4" enemy needs to be destory.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 19th Oct 2014 17:52
Ritik756
Quote: "when the player walks into trigger zone, this "e4" enemy needs to be destory"

Try using the "SETTARGETNAME=X" and "ACTIVATETARGET=1" for a
triggerzone script. But Meows method would be better, consider
if you hit the triggerzone before getting to the character??
I would go with the "plrdistwithin=x" and "runfpidefault=2".
But it all depends and what your trying to achieve?
best

My games never have bugs. They just develop random features..
Ritik756
9
Years of Service
User Offline
Joined: 22nd Apr 2014
Location:
Posted: 20th Oct 2014 09:08
Got it, thanks ncmako

Login to post a reply

Server time is: 2024-04-20 00:03:40
Your offset time is: 2024-04-20 00:03:40