-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
314 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
// put away weapon | ||
[player] call ace_weaponselect_fnc_putWeaponAway; | ||
sleep 1.1; | ||
radioSuitcaseCarry = "Land_Suitcase_F" createvehicle getpos player; | ||
radioSuitcaseCarry attachTo [player, [-0.03,-.1,-0.26], "RightHandMiddle1"]; | ||
radioSuitcaseCarry setVectorDirAndUp [[1,0,0],[0,0,1]]; | ||
player setVariable ["radioAttached",true]; | ||
publicVariable "radioSuitcaseCarry"; | ||
|
||
// checks | ||
while {true} do { | ||
if (!alive player) exitWith {}; // if player is dead | ||
if (currentWeapon player != "") exitWith {}; // if player switches to weapon | ||
if (!(player getVariable ["radioAttached",false])) exitWith {}; // if player lost the radio in another way (put it back) | ||
sleep 0.5; | ||
}; | ||
|
||
if (player getVariable ["radioAttached",false]) then { | ||
radioSuitcaseDropped = createVehicle ['Land_SatellitePhone_F', [getPos player select 0, (getPos player select 1) - 0.5,0], [], 0, 'CAN_COLLIDE']; | ||
publicVariable "radioSuitcaseDropped"; | ||
}; | ||
|
||
player setVariable ["radioAttached",false]; | ||
deleteVehicle radioSuitcaseCarry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.