{"name":"BIS_fnc_moveToRespawnPosition","operator":null,"title":"BIS fnc moveToRespawnPosition","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_moveToRespawnPosition","revid":328433,"updated":"2022-07-13T16:00:51Z","groups":["Respawn"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Move given unit to given respawn position. Units moved to height >= 30m will start on parachute. Position [0,0,0] is blacklisted. This function must be executed where unit to be moved is local.","syntaxes":[{"syntax":"[unit, position, canBeDead] call BIS_fnc_moveToRespawnPosition","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit to move","types":["Object"],"since":null,"text":"unit: Object - unit to move"},{"name":"position","type":"Object, Group, String or Array","optional":false,"default":null,"description":"Object, Group, String or Array\n- Object or Group - Object or Group to move unit to. Move to the object position or inside an object if the object is a vehicle, or if group or unit is in vehicle and there is an empty seat\n- String - Marker to move unit to. Marker size will be used for random placement area and marker direction for unit direction\n- Array - Precise PositionAGL to move unit to. [x,y] array will be converted to [x,y,0]","types":["Object","Group","String","Array"],"since":null,"text":"position: Object, Group, String or Array\n- Object or Group - Object or Group to move unit to. Move to the object position or inside an object if the object is a vehicle, or if group or unit is in vehicle and there is an empty seat\n- String - Marker to move unit to. Marker size will be used for random placement area and marker direction for unit direction\n- Array - Precise PositionAGL to move unit to. [x,y] array will be converted to [x,y,0]"},{"name":"canBeDead","type":"Boolean","optional":true,"default":"true","description":"whether or not dead are allowed:\n- true - moved unit and/or object to which unit is moved can be dead\n- false - both moved unit and vehicle or unit at position (if any) must be alive","types":["Boolean"],"since":null,"text":"canBeDead: Boolean - (Optional, default true) whether or not dead are allowed:\n- true - moved unit and/or object to which unit is moved can be dead\n- false - both moved unit and vehicle or unit at position (if any) must be alive"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true: move succeeded, false: move failed","text":"Boolean - true: move succeeded, false: move failed"}}],"examples":[{"text":"```sqf\n[player, \"SpawnMarker1\"] call BIS_fnc_moveToRespawnPosition;\n```","code":["[player, \"SpawnMarker1\"] call BIS_fnc_moveToRespawnPosition;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Respawn","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}