OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Shumann on 27 Mar 2008, 22:24:40

Title: Script fo add a loop on animation
Post by: Shumann on 27 Mar 2008, 22:24:40
Hello all guys i need your help for create a script.
I need someone to explain me how to create a loop on animation with a script.
I use this animation on arma "AmovPsitMstpSlowWrflDnon_Smoking" so please if someone can create for me a script or explain me how to create i kiss him on head for the help  :D
Sorry for my bad english i wait your answers.
S!
Title: Re: Script fo add a loop on animation
Post by: The-Architect on 27 Mar 2008, 22:38:27
Something like this

Code: [Select]
#Start
unitname switchmove "AmovPsitMstpSlowWrflDnon_Smoking"
~5
GoTo "Start"

That'll make it loop every five seconds. I don't know how long the actual animation lasts so you'll have to find that out yourself.
If you want to stop the loop you'll have to add a condition in there. When it's met the script will go to another animation and then end.
Title: Re: Script fo add a loop on animation
Post by: Shumann on 28 Mar 2008, 03:10:32
Thanks a lot but i have another question.
Existing a method to add + loop and + movement in one script?
Example i want bob to sitdown and Jerry to sit down and smoke a cigarette so what i need to add in script?