Epoch/Sources/epoch_code/compile/EPOCH_PutHandler.sqf
2017-05-02 08:28:52 -05:00

22 lines
637 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
*/
private _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];
};
};