What is the script command to stop a script?

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
aks
Posts: 10
Joined: Sat Mar 05, 2005 8:14 pm

What is the script command to stop a script?

Post by aks »

What is the script command to stop a running script? I'm running looping subscripts (they call themselves) from another control script by using the "Run( "<scriptname>" )" command. I want to be able to stop a subscript from within the control script. I've tried Quit, Stop, End and Kill with no luck.

tia,aks

Toby
Posts: 101
Joined: Fri May 14, 2004 3:43 pm
Location: Houston TX

Post by Toby »

Hi aks... I don't know whether this will work, but how about calling and passing control to a second script named 'kill' with nothing in it, which should kill the first script? You might want to give that a try. Take care.

aks
Posts: 10
Joined: Sat Mar 05, 2005 8:14 pm

Post by aks »

Thanks for the reply. I'll try it out but I am not sure it is going to work because our control script calls a number of other scripts. Apparently G-Force, to its great advantage, runs scripts simultaneously. So you can for example use script A to control colors while script B controls sprites and so on. I am concerned the Kill will stop the wrong script.

Post Reply