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 / destroy entity with trigger zone

Author
Message
thekiller2009
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 30th Apr 2010 12:53
someone can help me how I can destroy a entity with trigger zone, I wants a game make such as f.e.a.r but that does not succeed if I this not know this
point man
14
Years of Service
User Offline
Joined: 5th Apr 2010
Location:
Posted: 2nd May 2010 03:16
I wish to know da same!
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 2nd May 2010 13:50 Edited at: 3rd May 2010 11:18
This is tested, and works.


Set ''plrinzoneactivateifused'' as the trigger zone's main script, then put the dynamic entities name in the triggerzone's ''if used'' field. This tells it to activate the enitiy when the player enters the trigger zone

Set this script as the entity you wish to destroy's main script, and make it dynamic.



thekiller2009
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 2nd May 2010 17:02
what must i do with the code snippet? I have never used it. have do I copy it and do store in word or what?
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 2nd May 2010 18:26
would there be anyway to both activate an enemy with a trigger and destroy the enemy with another trigger?
HELP ME!!!!!!!!!!!
14
Years of Service
User Offline
Joined: 16th Feb 2010
Location:
Posted: 3rd May 2010 07:52
@thekiller copy it to notepad and save it as an fpi file into scriptbank.

bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 3rd May 2010 11:14 Edited at: 3rd May 2010 11:21
Quote: " what must i do with the code snippet? I have never used it. have do I copy it and do store in word or what?[/qoute]

Copy it into note/word pad, save as, set the name to destroywhenactivated.fpi, change file type to ''all files'', save in your scriptbank folder.


[quote]would there be anyway to both activate an enemy with a trigger and destroy the enemy with another trigger?"


Yes, set it to not spawn at start. Not sure if the script I posted would work for that though.

thekiller2009
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 3rd May 2010 12:39
ok it is now a fpi file but where must i put it in by the entity or in the trigger zone?
ooh and my entity have a waypoint so that she runs for you and then she's gone. I have no idea or that awful is?
thekiller2009
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 4th May 2010 09:01
no wait i write it wrong, my entity has a waypoint so she runs for you and i will make with the trigger zone that when she is after running for you she disapear, but i don't no exact where i most put the script

Login to post a reply

Server time is: 2024-11-24 23:33:09
Your offset time is: 2024-11-24 23:33:09