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 Product Chat / multiple switches to trigger if used?

Author
Message
gorba flamingo
16
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 1st Nov 2008 21:26
hi
(ive searched and didnt find what i needed)
(im currently learning to script for fpsc be patient with me)

i was wondering how to have the player activate four switches to activate the if used, the player is able to trigger any one in any order they cant just hit one and say WOOT. and im wondering if i could do te same with charicters, kill four to activate somthin.

thanks

Z Fletch Studios list o games
Survival (in progress)
Insanity (in progress)
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 1st Nov 2008 22:52
Use variables....

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Nov 2008 08:42
(Could a Mod please move this to the Scripts board? Thanks. )

How to do it without variables:

- Make a dynamic entity that will be activated by your switches
- In this entity's script, have it increment it's state every time it's activated, and when it does have it return it's activation back to 0.
- When this entity's state gets to a certain number (I.E. number of switches you have) have it activate IT'S If Used (Which will be your target entity to be activated when all switches are pressed)


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
gorba flamingo
16
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 2nd Nov 2008 18:45
thanks guys, this will be much better than a story zone!

Z Fletch Studios list o games
Survival (in progress)
Insanity (in progress)

Login to post a reply

Server time is: 2024-10-11 17:29:29
Your offset time is: 2024-10-11 17:29:29