The Dink Network

How?

August 1st 2005, 06:18 AM
pig.gif
How would I go about causing a script to stop running, but without killing it. Basicly, is there a command like KILL_THIS_TASK();, only that doesn't permenantly stop the script?

Thanks.
August 1st 2005, 06:31 AM
spike.gif
return;
August 1st 2005, 07:56 AM
pig.gif
Thanks.
November 21st 2005, 06:26 AM
dinkdead.gif
millimeter
Peasant He/Him Canada
Millimeter is Wee-Lamm, Recording Artist. :-) 
According to dinkvar source file, return should kill the script.

perhaps: sp_disable(&current_sprite,1) would work?

mm
November 21st 2005, 06:35 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
return doesn't kill the script, it merely stops the current execution of the script, just as if the procedure ended naturally. If the script is attached to a sprite, it can still be interacted with.