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 / Trigger zone destroying.QUICK!!!

Author
Message
Vukgamer
11
Years of Service
User Offline
Joined: 21st Feb 2013
Location:
Posted: 11th Jun 2013 22:36
Hey guys!
How can I make a trigger zone destroy entity.Please Help me I need answer until 13th of June,Please Hurry!!!

He is always watching
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Jun 2013 22:50
Quote: "How can I make a trigger zone destroy entity."


Quite simple. In the trigger zone's main script, you use the "settargetname=x" and "activatetarget=1" commands. Script it to set the target and activate if the player enters the zone or however you need. In the script for the entity, have the beginning contain something like this:



Then entity will check if it has been activated or not. If so, then you can proceed to state 1 which could contain the simple line of ":state=1:destroy".


There's no problem that can't be solved without applying a little scripting.
Vukgamer
11
Years of Service
User Offline
Joined: 21st Feb 2013
Location:
Posted: 11th Jun 2013 23:19
So what do I do?
I need it step by step.
THanks for fast reply by the way.

He is always watching
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Jun 2013 23:31 Edited at: 11th Jun 2013 23:32
Step 1. Place your entity where you need it. Give it a name (ex: YOURENTITYNAME). Apply a script to the main that may be similar to the following:



Make sure the entity is set to "dynamic", otherwise scripts do not run.

Step 2. Place your trigger zone where you need it. Apply a script to the trigger's main that may contain something like the following:



Note that the command "settargetname=YOURENTITYNAME" --> the YOURENTITYNAME must match the name of the entity you gave in step #1. Do not use spaces; underscores "_" are okay, but the engine does have the occasional issue(s) with spaces in certain things.

That's all there is to it.


There's no problem that can't be solved without applying a little scripting.
Vukgamer
11
Years of Service
User Offline
Joined: 21st Feb 2013
Location:
Posted: 12th Jun 2013 00:48
Thanks a lot you saved me!

He is always watching
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Jun 2013 21:49
Quote: "Thanks a lot you saved me!"


You are welcome.


There's no problem that can't be solved without applying a little scripting.

Login to post a reply

Server time is: 2024-11-23 14:22:37
Your offset time is: 2024-11-23 14:22:37