Advertisement
Ambross

onplayerRespawn.sqf (trait changer)

Oct 23rd, 2019
354
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _playerBackpackItems = backpackItems player;
  2.  
  3. if ("ToolKit" in _playerBackpackItems) then { player setUnitTrait ["engineer",true,false]; player setUnitTrait ["explosiveSpecialist",true,false];} else { player setUnitTrait ["engineer",false,false]; player setUnitTrait ["explosiveSpecialist",false,false];};
  4.  
  5. if ("Medikit" in _playerBackpackItems) then {player setUnitTrait ["medic",true,false];} else {player setUnitTrait ["medic",false,false];};
Advertisement
RAW Paste Data Copied
Advertisement