2015-12-07 16:24:52 +00:00
|
|
|
/*
|
|
|
|
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:
|
2016-06-13 16:54:19 +00:00
|
|
|
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/vehicles/EPOCH_client_gearVehicle.sqf
|
2015-12-07 16:24:52 +00:00
|
|
|
*/
|
2015-09-14 20:55:36 +00:00
|
|
|
closeDialog 0;
|
|
|
|
if (!isNull cursorTarget) then {
|
2016-04-17 20:28:21 +00:00
|
|
|
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30];
|
2015-09-14 20:55:36 +00:00
|
|
|
if (cursorTarget in _vehicles) then {
|
|
|
|
player action["Gear", cursorTarget];
|
|
|
|
};
|
2015-12-07 16:24:52 +00:00
|
|
|
};
|