mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
25 lines
672 B
Plaintext
25 lines
672 B
Plaintext
/*
|
|
Author: Aaron Clark - EpochMod.com
|
|
|
|
Contributors:
|
|
|
|
Description:
|
|
Open gear on cursorTarget function
|
|
|
|
Licence:
|
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
|
|
|
Github:
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_gearVehicle.sqf
|
|
*/
|
|
//[[[cog import generate_private_arrays ]]]
|
|
private ["_vehicles"];
|
|
//[[[end]]]
|
|
closeDialog 0;
|
|
if (!isNull cursorTarget) then {
|
|
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30];
|
|
if (cursorTarget in _vehicles) then {
|
|
player action["Gear", cursorTarget];
|
|
};
|
|
};
|