Home   Help Search Login Register  

Author Topic: Soldier Animations,  (Read 475 times)

0 Members and 2 Guests are viewing this topic.

HurricaneXII

  • Guest
Soldier Animations,
« on: 24 Oct 2004, 08:38:59 »
 :) Hey, I'm new to the Forums. And Iv'e Just started my first map. I was wondering how do I get the Soldier Animations to loop? I'm not using a script, just a Trigger and a Init string.  

[gt_r_s1 playmove "EffectStandSalute"  ] I'm currently using that. How Do I make it so that the soldier loops the animation? Iv'e tried using the Search for the forums, but no luck..


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Soldier Animations,
« Reply #1 on: 24 Oct 2004, 13:04:25 »
Welcome to the forum!

Your best bet is to use a simple script.     The time honoured way of learning scripting is to study

snYpir's Friendly Intro to Code snippets
Johan Gustafsson's Scripting Tutorial
macguba's Tutorial Mission

Your script will be called from the init field of the unit you want to do the animation

[this] exec "looper.sqs"

and the script file called looper.sqs (make sure it is not looper.sqs.txt) will be something like this

; this script makes a loon repeat the animation

_loon = _this select 0

#loop
? not alive _loon : exit
? the stop condition is true : exit

_ loon playmove "EffectStandSalute"
~3
goto "loop"


That's not a working script, just a good sketch.   You'll have to play with it a bit to get what you want.

Plenty of reviewed ArmA missions for you to play