I can move this unit wherever I want while it is OFF.
Ideally, when it is turned ON it does an animation and should stop.
Then, when it is turned OFF, again, it is free to move.
The problem is, when I hit ON, it continues to move freely as if it were turned OFF.
My code:
Code: Select all
Activate()
{
some cool animation here;
set MAX_SPEED to [0];
start-script RequestState(0);
}