my proplem is this: without the use of IF statements, my understanding of logic goes out the window.
how do I effectively use an accum to be able to toggle somethign off and on …but not just one way I want it to work both ways so it can be re-usable.
here is my script:
propturn
{
spawn
{
accum 1 set 1
wait 200
}
trigger proprotate
{
trigger propturn spin
trigger propturn stop
togglespeaker target_speaker
}
trigger spin
{
accum 1 abort_if_not_equal 0
accum 1 set 0
trigger propeler spin
}
trigger stop
{
accum 1 abort_if_not_equal 1 // 0=spining
accum 1 set 1
trigger propeler stop
}
}
/////////////////////////////////
propeler
{
spawn
{
}
trigger stop
{
stoprotation
}
trigger spin
{
setrotation 0 1000 0
}
}
obviously, no matter the accum, if this script was to run it goes through both “trigger stop” and “trigger spin” . because “trigger spin” will always change the accum before “trigger stop” gets a chance to evaluate, in effect the choices between spin and stop don’t work out
I know this is a very simle script but I just can’ t figure out how to get it to work