Advertisement
Guest User

EPOCH_server_respawnPlayer.sqf

a guest
May 12th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.82 KB | None | 0 0
  1.  
  2. private["_defaultUniform","_class","_vest","_dir","_location","_plyrObj","_plyr"];
  3. if !([_this select 0,_this select 1]call EPOCH_server_getPToken)
  4.     exitWith{};
  5. _plyr=_this select 0;
  6. _plyrObj=_plyr;
  7. if(count _this==3)then{
  8.     _defaultUniform="U_Test_uniform";
  9.     _class="Epoch_Female_F";
  10.     _vest="V_F41_EPOCH";
  11.     if(_this select 2)then{_defaultUniform="U_Test1_uniform";_class="Epoch_Male_F";_vest="V_41_EPOCH";};
  12.     _dir=random 360;
  13.     _location=getMarkerPos "respawn_west";
  14.     _location set[2,0];
  15.     _plyrObj=(group _plyr)createUnit[_class,_location,[],0,"CAN_COLLIDE"];
  16.     {_plyrObj disableAI _x;}forEach["FSM","MOVE","AUTOTARGET","TARGET"];
  17.     _plyrObj setDir _dir;
  18.     _plyrObj setPosATL _location;
  19.     EPOCH_switchPlayer_PVC=_plyrObj;
  20.     (owner _plyr)publicVariableClient "EPOCH_switchPlayer_PVC";
  21. };
  22. _plyrObj setVariable["REVIVE",true];true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement