Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> addMissionEventHandler ["TeamSwitch", {
- params ["_previousUnit", "_newUnit"];
- commandStop _previousUnit;
- _previousUnit enableAI "TeamSwitch";
- //_azimuth = getDir _previousUnit;
- //_previousUnit setDir _azimuth;
- _from = _this select 0;
- _stance = stance _from;
- _stance = ["UP", "MIDDLE", "DOWN"] param [["STAND", "CROUCH", "PRONE"] find _stance, "AUTO"];
- _from setUnitPos _stance;
- if (
- not ( isPlayer (leader group _newUnit) )
- ) then {
- (group _newUnit) selectLeader _newUnit;
- };
- }];
Advertisement
Add Comment
Please, Sign In to add comment