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 / unactivated triggerzone until event

Author
Message
Trugar
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location: New York
Posted: 18th Jul 2008 21:03
Is there any way to have a trigger zone unactivated so when the player walks in it nothing happens until an event like completing an objective then have activated so when the player walks over it it works. if can be done just point me in the right direction and I shall attempt it.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 18th Jul 2008 23:36
using the variables now you could...technically but I'm not sure however(I'm no good with variables).

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Trugar
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location: New York
Posted: 19th Jul 2008 00:28
ok so i'am thinking now i should use the variables in sequence like objective 1's trigger zone would be activated some how when a seperate event happened and adds 1 to the list which raises another question:

Are varibles global or are they only dealt with inside there own script?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Jul 2008 01:48
Variables are not a requisite for this type of action, just a little extra thought.

Consider the following script:




There, giving that code to a triggerzone will make it not do anything until it has been activated by another entity. After it has been activated, then it will do something when the player enters the zone.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 19th Jul 2008 03:01
thought that would work but then FL's FPI Editpad described it as a substitute for state= or something like that.

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Jul 2008 03:28
Technically they are both variables but the "activated" variable can be changed by outside scripts, whereas the "state" variable must be changed from within the same script.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 19th Jul 2008 03:53
cool...can't test anything as FPSC refuses to start(i've installed 10 times at least...today)

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein

Login to post a reply

Server time is: 2024-11-24 11:06:50
Your offset time is: 2024-11-24 11:06:50