OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 on 01 Apr 2005, 13:39:50
-
i have seen a script where when you click a man he puts his gun down and gives up. i need it where when you click some where some loons walk there.
like being commander but not being it. so if you haappen to know how to do this then let me know.
thanks in advance
edit
can i ask a nother Q i dont want to start a nothe topic.
if you are running a script with a loop can you exit the script from a nother script?
-
if you are running a script with a loop can you exit the script from a nother script?
Yes, with a global variable.
Looping script:
outofhere = false
#Loop
~5
? !outofhere : goto "Loop"Other script (...or trigger or whatever):
outofhere = true
This applies to single player missions. In multiplayer mission editing you might have to do something else too, but let's not confuse you with that at this time.
-
For the other thing the command you need is onMapSingleClick.
-
well thanks you your help
-
O WAITE i have one more Q
can you change a name of a unit i have tryed useing the
Set identity
command but i dont think i am useing it right.
thanks
-
Go to Editors Depot and search for 'Identities'. There's a good tutorial about it.
-
ok thanks