Author Topic: Animations.  (Read 253 times)

Rionrace

  • Hero Member
  • *****
  • Posts: 575
  • Karma: 10
    • Email
Animations.
« on: May 15, 2010, 11:25:07 pm »
I'm looking all around the web for instructions to make a unit do a certain animation, immediately when i start the mission. I've tried a bunch things , e.g: "Anim"; NAME playMove "ActsPercMstpSnonWnonDnon_DancingStefan";

I'd like some help, because i'm making a kind of machinima with camera.sqs and things. 

el76

  • Newbie
  • *
  • Posts: 12
  • Karma: 3
Re: Animations.
« Reply #1 on: May 16, 2010, 02:11:26 pm »
afaik, you can´t start a animation immediatly after mission load. Give it a small delay with sleep 1.

Rionrace

  • Hero Member
  • *****
  • Posts: 575
  • Karma: 10
    • Email
Re: Animations.
« Reply #2 on: May 16, 2010, 03:28:58 pm »
afaik, you can´t start a animation immediatly after mission load. Give it a small delay with sleep 1.
Can you exactly tell me how to add a delay?

el76

  • Newbie
  • *
  • Posts: 12
  • Karma: 3
Re: Animations.
« Reply #3 on: May 16, 2010, 04:20:51 pm »
in script or in the editor ?

el76

  • Newbie
  • *
  • Posts: 12
  • Karma: 3
Re: Animations.
« Reply #4 on: May 16, 2010, 04:43:02 pm »
Editor:
1. Give the unit the name dummy
2. place a trigger on the map within the following settings

Condition: true
On Act.: sleep 1;dummy playmove "AidlPpneMstpSnonWnonDnon_SleepC_killFly"

Instead of sleep 1 you can set the values for Min:, Mid: and Max: to 1. Does the same in a trigger.


Script:
1. Give the unit the name dummy
2. Create a file anim.sqf in your mission folder
3. Add this into the script
sleep 1;
dummy playmove "AidlPpneMstpSnonWnonDnon_SleepC_killFly";

4. Into the initialization of the unit put:
_myscript=[] execVM "anim.sqf"
« Last Edit: May 16, 2010, 05:22:27 pm by el76 »

Rionrace

  • Hero Member
  • *****
  • Posts: 575
  • Karma: 10
    • Email
Re: Animations.
« Reply #5 on: May 16, 2010, 05:14:43 pm »
Editor:
1. Give the unit the name dummy
2. place a trigger on the map within the following settings

Condition: true
On Act.: sleep 1;dummy playmove "AidlPpneMstpSnonWnonDnon_SleepC_killFly"

Instead of sleep 1 you can set the values for Min:, Mid: and Max: to 1. Does the same in a trigger.


Script:
1. Give the unit the name dummy
2. Create a file anim.sqf in your mission folder
3. Add this into the script
sleep 1;
dummy playmove "AidlPpneMstpSnonWnonDnon_SleepC_killFly";

4. Into the initialization of the unit put:
[] execVM "anim.sqf"
It works!I <3 you ;D +1