Epoch/Sources/epoch_code/compile/EPOCH_PutHandler.sqf
2016-06-13 11:54:19 -05:00

22 lines
629 B
Plaintext

/*
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:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_PutHandler.sqf
*/
_class = param [2];
//Radio Check
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _class)) == "ItemRadio") then {
if !(_class in(assignedItems player)) then {
EPOCH_equippedItem_PVS = [_class,false,player];
};
};