Advertisement
Matt34

Untitled

Jun 27th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //Matt's booby trap
  2. if (("ItemEtool" in _weps) && ("PartWoodPile" in _mags)) then {
  3. hasBombItem = true;
  4. } else { hasBombItem = false;};
  5. if (("ItemEtool" in weapons player) && ("PartWoodPile" in magazines player) && (speed player <= 1) && hasBombItem && _canDo)) then {
  6. hasBomb = true;
  7. } else {
  8. hasBomb = false;
  9. };
  10. if ((hasBomb) && ("HandGrenade_West" in magazines player)) then {
  11. if (s_player_makeBomb < 0) then {
  12. s_player_makeBomb = player addAction [("<t color=""#c30000"">" + ("Place Exploding Booby Trap") +"</t>"),"scripts\boobytrap.sqf","",5,false,true,"",""];
  13. };
  14. } else {
  15. player removeAction s_player_makeBomb;
  16. s_player_makeBomb = -1;
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement