Home   Help Search Login Register  

Author Topic: Ending a script.  (Read 789 times)

0 Members and 2 Guests are viewing this topic.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Ending a script.
« on: 24 Sep 2003, 13:56:08 »
How can i make it so that if a soldier dies, a script stops.
The soldiers name is smokey and i want it so when he dies, a script called smokes.sqs stops.

Thanks
Hey kid, wanna see a dead body!?

Knut Erik

  • Guest
Re:Ending a script.
« Reply #1 on: 24 Sep 2003, 13:57:40 »
Like this, m8  ;)

#loop
DoSomeThingFancy
?!Alive smokey : Exit   <== This line checks if the soldier is alive !!  :D
goto "Loop"

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:Ending a script.
« Reply #2 on: 25 Sep 2003, 03:38:31 »
Thanks alot. It worked out perfectly! I was supried at the start by the "do somethingfancy" thing, but now i get it.

Thanks again
Hey kid, wanna see a dead body!?