Jump to content

Recommended Posts

Posted

Thanks :), you sound like you know your stuff, is there a tutorial somewhere that does something similar that I can follow? I need a step by step.... script idiot....

Posted

no idea

 

create a new global variable, make it a float or w/e set it to 0
----Add this to whatever script you are trying to toggle---
globalvariable Property counter1 Auto
int property int1 auto
event blahblah (w/e you are using)
int1 = counter1.getvalueint()
if (int1==1)
do all this crap
endif
endevent
----------------------------
Now point the global variable at the one you created in propertys
On the switch I'm pretty sure this will work just fine
---
globalvariable property counter1 auto
int property int1 auto
event onactivate(objectreference akactionref)
int1 = counter1.getvalueint()
if (int1==1)
counter1.setvalueint(0)
elseif (int1==0)
counter1.setvalueint(1)
endif
endevent
---------------
And once again point the global to the new one you created, now every time they hit the switch it changes the gv between 0 and 1 and 1 will trigger w/e trigger box if you put everything under the if I gave you up there
If you need more than that.. oh well thats it from me
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...