setGivePermissionLevel - gruppe-adler/grad-aiCommand GitHub Wiki
grad_aicommand_fnc_setGivePermissionLevel
Sets the give permission level of a unit. A unit needs to have an equal or higher give permission level than the receive permission level of an AI to give commands. Only makes sense for players. Effect is global.
Syntax
[unit, permissionLevel] call grad_aicommand_fnc_setGivePermissionLevel
Parameter | Explanation |
---|---|
unit | Object - The unit to set the give commands permission level of. |
permissionLevel | Number - Permission level to give commands. |
Example
[player,5] call grad_aicommand_fnc_setGivePermissionLevel;