Home   Help Search Login Register  

Author Topic: looped anims  (Read 629 times)

0 Members and 1 Guest are viewing this topic.

david-p

  • Guest
looped anims
« on: 04 Nov 2002, 16:04:23 »
i feared i may have to eventually ask this dumbass question, so believe me, im getting quite desperate!!
quite simple really, i have a group of guys, resgroup, and i want them to do a "FXStandSurUniv". no probs so far. i want them to stay at that position, even when facing hostiles. so far so good. and even when theyre covered in claret, i dont think its too much to expect them to fall over. no such luck  >:(
and i cant think of a way to have them surrendering only until theyre dead. any suggestions plz
thanx, dave

Bremmer

  • Guest
Re:looped anims
« Reply #1 on: 04 Nov 2002, 17:55:30 »
Try activating your anim from a script like this:

;activate with [unitname] exec "surrender.sqs"
_unit = this select 0
_unit switchmove "FXStandSurUniv"
@ not alive _unit
_unit switchmove ""
exit

 :)
« Last Edit: 04 Nov 2002, 20:05:27 by Bremmer »

david-p

  • Guest
Re:looped anims
« Reply #2 on: 04 Nov 2002, 19:42:10 »
two slight probs: when i starting letting rounds fly they go back to "combat" (which looks awful).
and theres a full group of 12, so id need 12 scripts running simultaneously. the missions getting pretty slowed already.
dont mean to shoot ur idea down, but thats not the answer im afraid. any other suggestions?

Bremmer

  • Guest
Re:looped anims
« Reply #3 on: 04 Nov 2002, 20:13:56 »
Hmm ... didn't like that one eh?

Try this on for size:]

;activate with [unitname] exec "surrender.sqs"
_unit = _this select 0
_unit switchmove "FXStandSurUniv"
;this stops multiple scripts running concurrently
~(random 1)
#loop
;adjust the delay to eliminate lag (there should be no lag with 0.1 unless you system is v.low spec)
~0.1
? not alive _unit : _unit switchmove "FXStandSurDead"; exit
goto "loop"

david-p

  • Guest
Re:looped anims
« Reply #4 on: 05 Nov 2002, 15:38:12 »
ah hah. thats almost it. i just stuck the SurUniv move in the loop as well. and with a ~0.1 i didnt notice anything, but it cant hurt to put it at 0.3, its barely noticeable the fact they dont always fall over straightways.
Hoorah.
Many thanks.