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 / When all are destroyed you win?

Author
Message
Slayer267
14
Years of Service
User Offline
Joined: 6th Sep 2010
Location: Non of your beez wax
Posted: 18th Mar 2011 04:32
Is there a script out there where you kill like all the entitys are destroyed you win?

EPIC HELP! EPIC PWNAGE

www.fpschelp.webs.com
Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 18th Mar 2011 08:50
Yes. You can use a globalvariable. Let's say there are 5 bad men you need to kill so you can win, so make a script using globalvar and increase it by 1 when a bad man is dead, in destroy script.
Then put a trigger zone somewhere and make script where that globalvar needs to be equal to 5 (all killed) and then activateifused=1 and put winzone into that win zone's name and into ifused box in trigger zone's. If I remember right there were a script for this in FPSC Community Guide.

Thanks,
TP
da2020
14
Years of Service
User Offline
Joined: 26th Dec 2009
Location: C:\\Program Files\\
Posted: 18th Mar 2011 09:25 Edited at: 18th Mar 2011 09:27
or you could just make use of 'IsObjective' in your characters property......
Slayer267
14
Years of Service
User Offline
Joined: 6th Sep 2010
Location: Non of your beez wax
Posted: 18th Mar 2011 15:53
Oh dur dur dur! Thanks Da2020 and Turtle Productions!

EPIC HELP! EPIC PWNAGE

www.fpschelp.webs.com

Login to post a reply

Server time is: 2024-11-24 10:45:18
Your offset time is: 2024-11-24 10:45:18