Home   Help Search Login Register  

Author Topic: i have two Q's  (Read 572 times)

0 Members and 2 Guests are viewing this topic.

dave52390

  • Guest
i have two Q's
« 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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:i have two Q's
« Reply #1 on: 14 Aug 2004, 14:27:20 »
loon1 setUnitPos "up"

Syntax not guaranteed - check the comref.
« Last Edit: 14 Aug 2004, 14:27:43 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:i have two Q's
« Reply #2 on: 14 Aug 2004, 21:27:23 »
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:
« Last Edit: 14 Aug 2004, 21:27:37 by Tomb »

DBR_ONIX

  • Guest
Re:i have two Q's
« Reply #3 on: 14 Aug 2004, 23:06:03 »
For the other question..
You make a script, in notepad..
Code: [Select]
_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
Code: [Select]
[this] exec "surrender.sqs"

If you call if from somewhere other than the script, you use
Code: [Select]
[unitsname] exec "surrender.sqs"

Gd luck
- Ben