CLEO Help Help with making a toggle

CLEO related
Status
Not open for further replies.

SeeJaybro

Member
Joined
May 26, 2013
Messages
14
Reaction score
0
I have a hella stupid issue you may laugh at... But I intend to learn the correct way.
http://ugbase.eu/releases-6/stay-always-in-the-bike/
Previously before my PC crashed I had took a few hours to learn how to create a loop so that I could toggle this script on and off. I would be really greatful if somebody would show me the steps I would take to do so again because I cannot seem to do it a second time.
Or if somebody could simply edit the script on it to make it a toggle I would love to read over that finalized product to try and figure out on my own by comparing it to the original.
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
{$CLEO .cs}

0000: NOP

:ON
wait 0
if // put a condition under this
0AB0: PUT_KEY_HERE // the key must be VC, like 54, it means 6
jf @ON // if the condition is not done, go to label @ON so you still can do the condition
08C6: set_actor $PLAYER_ACTOR stay_on_bike 1 // activate it
print "~G~ON" 2500 // a green text telling you that the script is on
wait 500  //if you press a button, you do it for 250-750ms, so if you don't put wait 500 it will turn on and off a lot of times
goto @OFF // go to label @OFF

:OFF
wait 0
if // put a condition under this
0AB0: PUT_KEY_HERE // the key must be VC, like 57, it means 9
jf @OFF // if the condition is not done, go to label @OFF so you still can do the condition
08C6: set_actor $PLAYER_ACTOR stay_on_bike 0 // deactivate it
print "~R~OFF" 2500 // a red text telling you that the script is on
wait 500 // if you press a button, you do it for 250-750ms, so if you don't put wait 500 it will turn on and off a lot of times
goto @ON // go to label @ON
 
Status
Not open for further replies.
Top