deactivating scripts after running once
Posted: Mon Jun 27, 2011 8:56 pm
I want to run two separate scripts initiated by 'mouse button down' events on the same actor. One script must run repeatedly, after each 'mouse button down', the other must run just once. So, I need a way to de-activate the run-once script after the first mouse button down.
Is there a simple way to do this?
I tried putting the whole script in a 'for loop' with a one cycle limit but, so far, this just succeeded in crashing the whole game.
Any ideas would be much appreciated.
Thanks
Is there a simple way to do this?
I tried putting the whole script in a 'for loop' with a one cycle limit but, so far, this just succeeded in crashing the whole game.
Any ideas would be much appreciated.
Thanks