OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dave52390 on 14 Aug 2004, 13:50:46
-
How do i get some one to stand still and not go prone when they see an enemy.....? and .... how i make the person keep do this anim for like 5 minutes called ((((any name switchmove "fxstandsuruniv")))) .......... thanks
-
loon1 setUnitPos "up"
Syntax not guaranteed - check the comref.
-
It depends on the situation; like, if you wanna create a guard-like soldier, or a hidden sniper/spotter. :o
For snipers/spotters:
Place the moron, setPos him if you wanna put him in houses.
Then put this in his INIT field:
this setUnitPos "UP"; Dostop This
That'll make him stand still, though yet be able 2 shoot @ any scumbags
For the guards, I use >>This setBehaviour "Careless"<< in the INIT field,
and then I Use triggers or scripts to check when he's supposed to take action. :)
Then his beh. changes to "aware" or combat etc...
CHEERS :thumbsup:
-
For the other question..
You make a script, in notepad..
_unit = _this select 0
#loop
_unit switchmove "FXStandSurv"
~0.5
GOTO "loop"
And save it in your mission's folder as surrender.sqs
Make sure you change the Type Of File thing to "All Files (*.*)"
And in the unit's INIT field, put this
[this] exec "surrender.sqs"
If you call if from somewhere other than the script, you use
[unitsname] exec "surrender.sqs"
Gd luck
- Ben