Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
-
- private ["_theAction"];
- _randChance = random 1;
- _equippedMagazines = magazines player;
- // As it is, script will fail if the random chance is say 0.6, nothing at all will happen no title text, no indication, I commented your values and added correct ones
- if ("Exile_Item_Hammer" in _equippedMagazines) then
- {
- //if (_randChance <= 0.5) then
- if (_randChance <= 0.7) then
- {
- player playMove "AinvPknlMstpSnonWnonDr_medic3";
- playSound "sound1";
- sleep 14;
- titleText ["You found nothing!", "PLAIN",1];
- };
- //if ((_randChance > 0.7) && (_randChance <= 0.9)) then
- if (_randChance > 0.7) then
- {
- player playMove "AinvPknlMstpSnonWnonDr_medic3";
- playSound "sound1";
- sleep 14;
- _targetA = player;
- _distA = random 2;
- _dirA = direction player - 180;
- _posA = getpos _targetA;
- _positionsA = [(_posA select 0) + (sin _dirA) * _distA, (_posA select 1) + (cos _dirA) * _distA, 0];
- _weaponHolderA = createVehicle ["GroundWeaponHolder", getPosATL player, [], 0, "CAN_COLLIDE"]; _weaponHolderA addItemCargoGlobal ["Exile_Item_MetalBoard", 1];
- player removeAction _search;
- uiSleep 10;
- theAction = false;
- };
- }
- else
- {
- titleText ["You need a Hammer to do that!", "PLAIN",1];
- };
-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement