{"name":"canMove","operator":null,"title":"canMove","type":"command","url":"https://community.bistudio.com/wiki/canMove","revid":369116,"updated":"2024-09-03T10:28:47Z","groups":["Object Manipulation"],"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":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns if the given vehicle is still able to move.\n- This command does not check for the amount of fuel the vehicle has, except for helicopters and airplanes.\n- A helicopter with a damaged tail rotor may return that it cannot move, where a skilled pilot could use it.","syntaxes":[{"syntax":"canMove vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if the vehicle is able to move, false if not","text":"Boolean - true if the vehicle is able to move, false if not"},"form":"unary","operator":null,"left":null,"right":{"text":"vehicle","types":["Object"]}}],"examples":[{"text":"```sqf\nif (not canMove _tank) then\n{\n    player sideChat \"He's nailed on the ground! Now hurry!\";\n};\n```","code":["if (not canMove _tank) then\n{\n\tplayer sideChat \"He's nailed on the ground! Now hurry!\";\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["canFire","canStand"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}