Home   Help Search Login Register  

Author Topic: Script fo add a loop on animation  (Read 1015 times)

0 Members and 1 Guest are viewing this topic.

Offline Shumann

  • Members
  • *
Script fo add a loop on animation
« 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!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: Script fo add a loop on animation
« Reply #1 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.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Shumann

  • Members
  • *
Re: Script fo add a loop on animation
« Reply #2 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?