plaindog 22 Posted November 6, 2013 Hello scripters and editors. I am fairly new to scripting in Arma 3, and I basically use it for making videos. But I have a problem I hope that someone can explain to me. How on earth can I make a infantry unit do an animation? I have looked at some explanations on this but I never get them to work. Can someone explain me in some easy steps how to do it? Like this 1. Place soldier and name him "blabla" 2. Create trigger 3. etc etc I admit it, Im stupid:( Share this post Link to post Share on other sites
IndeedPete 1038 Posted November 6, 2013 Easiest way is nowadays the BIS_fnc_ambientAnim. Hit the functions viewer in the upper bar of the editor and then look for A3->Ambient->ambientAnim. Check out the available anims and use the function in your trigger via: [guy, "STAND", "ASIS"] call BIS_fnc_ambientAnim; Share this post Link to post Share on other sites
wok 1 Posted November 6, 2013 ambientAnim looks like its only able to play some of the available animations, you can also use something like unit playMoveNow "AmovPercMstpSsurWnonDnon"; To test how to animate an unit, you could do this: place a playable unit on the editor, and then an enemy unit close to it (take out the ammo so he wont shoot you), then add this code to your mission init.sqf or just run it in the debug console: player addAction[ "test", { cursorTarget playMoveNow "AmovPercMstpSsurWnonDnon" }]; This will add an action menu entry, so just run the mission, aim at the enemy, and run the "test" menu entry. The unit you are aiming at (cursorTarget) will play the animation. Share this post Link to post Share on other sites
IndeedPete 1038 Posted November 6, 2013 Yes, it's true, BIS_fnc_ambientAnim will cover/mix just a part of the available animations in order to create some backround atmospheric stuff. But i've made the experience that the function covers most common and useful animations for standard cutscenes like briefings etc. Oh, and if you don't know it yet try the animation viewer to take a look at all available animations. Just click preview in editor, then hit escape and look for the Animation Viewer button. It's quite useful. Share this post Link to post Share on other sites
specie 11 Posted November 6, 2013 Very nice, thank you wok! Share this post Link to post Share on other sites