{"name":"playMove","operator":null,"title":"playMove","type":"command","url":"https://community.bistudio.com/wiki/playMove","revid":373663,"updated":"2025-06-01T19:28:50Z","groups":["Animations"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"When used on a person, smooth transition to given move will be done.\n\nThe difference between playMove and playMoveNow is that playMove adds another move to the move queue, while playMoveNow replaces the whole move queue with new move (see #Example 2).\n\n> [!NOTE]\n> see Category:Moves for respective games animations.\n\n> [!IMPORTANT]\n> A transition is only possible if the current and provided animation nodes are connected to each other in config (via connectTo/From and interpolateTo/From). The connection can be indirect (using intermediate animations)","syntaxes":[{"syntax":"unitName playMove moveName","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"},{"name":"moveName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"moveName: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unitName","types":["Object"]},"right":{"text":"moveName","types":["String"]}}],"examples":[{"text":"```sqf\nsoldierOne playMove \"Stand\";\n```","code":["soldierOne playMove \"Stand\";"]},{"text":"```sqf\nplayer switchMove \"AmovPercMstpSrasWrflDnon\";\n0 spawn \n{\n    sleep 0.5;\n    player playMove \"AmovPpneMstpSrasWrflDnon\";        // player goes prone\n    player playMove \"amovPknlMstpSrasWrflDnon\";        // player gets up on one knee\n};\n```","code":["player switchMove \"AmovPercMstpSrasWrflDnon\";\n0 spawn \n{\n\tsleep 0.5;\n\tplayer playMove \"AmovPpneMstpSrasWrflDnon\";\t\t// player goes prone\n\tplayer playMove \"amovPknlMstpSrasWrflDnon\";\t\t// player gets up on one knee\n};"]},{"text":"```sqf\nplayer switchMove \"AmovPercMstpSrasWrflDnon\";\n0 spawn\n{\n    sleep 0.5;\n    player playMove \"AmovPpneMstpSrasWrflDnon\";        // player never goes prone\n    player playMoveNow \"AmovPknlMstpSrasWrflDnon\";    // player goes down on one knee straight away\n};\n```","code":["player switchMove \"AmovPercMstpSrasWrflDnon\";\n0 spawn\n{\n\tsleep 0.5;\n\tplayer playMove \"AmovPpneMstpSrasWrflDnon\";\t\t// player never goes prone\n\tplayer playMoveNow \"AmovPknlMstpSrasWrflDnon\";\t// player goes down on one knee straight away\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["playMoveNow","switchMove","playAction","playActionNow"],"notes":[{"user":"Macguba","date":"2006-04-16T02:39:00Z","text":"For an immediate transition use switchMove. This command must be executed after mission start. If you place it into init.sqs / init.sqf or in the Init field of some unit, it will not work. Just add a little delay (~0.001) and then place the command."}],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Animations","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}