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 after killing enemy wave

Author
Message
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 27th Aug 2011 21:02
hello
wanting to destroy entity "Teleporter"
im able to get it to spawn within my wave script
but cant figure out how to destroy it after a different wave







here is the line i spawn it
teleporter spawns after killing 1st enemy wave


ive tried using destroy several diffferent ways
but nothing im doing seems to work ( or be done right)
im new to scripting so maybe im going about this completly wrong



can someone show me the right way to get it done
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 29th Aug 2011 14:28
Hi xymore,

the destroy command only destroys the entity running the script. It does not destroy the target entity.

One way you can do what you want is to include the line

Quote: ":activated=666:destroy"


in the main script of the teleporters and then replace "destroy" in your script above with "activatetarget=666".

I have used this method a few times and it works.

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 30th Aug 2011 13:57
also you cant activate more than one target per line, so you need another to destroy the teleporter out.

Login to post a reply

Server time is: 2024-11-24 05:22:10
Your offset time is: 2024-11-24 05:22:10