Epoch/Sources/epoch_code/compile/EPOCH_PutHandler.sqf

26 lines
843 B
Plaintext
Raw Normal View History

2015-12-07 16:24:52 +00:00
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Tells server when a radio is equpped for use with custom radio channels
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/EPOCH_PutHandler.sqf
2015-12-07 16:24:52 +00:00
*/
2018-04-20 16:19:31 +00:00
params ["_unit", "_container", "_class"];
2015-09-14 20:55:36 +00:00
//Radio Check
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _class)) == "ItemRadio") then {
if !(_class in(assignedItems player)) then {
EPOCH_equippedItem_PVS = [_class,false,player];
};
2015-12-07 16:24:52 +00:00
};
2018-04-20 16:19:31 +00:00
if (_class in ["EnergyPack","EnergyPackLg"] && (typeof _container) in ["SolarCharger_EPOCH","SolarChargerXL_EPOCH"]) then {
["Charging ...",5,[[0,1,0,0.2],[1,1,1,1]]] call Epoch_Message;
};