Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Ending a script.
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Ending a script. (Read 790 times)
0 Members and 1 Guest are viewing this topic.
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
Logged
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 !!
goto "Loop"
Logged
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
Logged
Hey kid, wanna see a dead body!?
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Ending a script.
Top of page