This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
moveToGroupMarker = { | |
if (typeName _this != "OBJECT") then { | |
_this = player | |
}; | |
_pos = getMarkerPos format["#RESPAWN#%1",group _this]; //get respawn marker position | |
if (_pos isEqualTo [0,0,0]) exitWith {}; //if pos == [0,0,0] no marker exists, exit | |
_this setVehiclePosition [_pos,[],5]; //set player position to within 5 meter radius at marker pos | |
_this setDir random 360; //set ranom player direction | |
}; |