Here are collected some useful scripts. Remember to give credit to the author! The toggle script (By Wacov): if frame==1; setVar("repeat",0); setVar("toggle",0); end; if joybutton("a")==0; setVar("repeat",1); getVar("toggle"); elsif getVar("repeat")==0; getVar("toggle"); elsif getVar("toggle")==0; setVar("repeat",0); getSetVar("toggle",1); else;setVar("repeat",0); getSetVar("toggle",0); end; Versatile, good for many kinds of switches. Change 'joybutton("a")' to any key or button input if your model requires; the output of the script is the variable called "toggle".
| Identifier (URI) | Rank |
|---|---|
| dbkwik:resource/4x3M3w1e6pjAz7-WRa0IrQ== | 5.88129e-14 |