setReceivePermissionLevel - gruppe-adler/grad-aiCommand GitHub Wiki
grad_aicommand_fnc_setReceivePermissionLevel
Sets the receive permission level of a unit or group. If the value of a leader differs from that of his group, the leader's value takes precedence. A player needs to have an equal or higher give permission level than the receive permission level of an AI to give commands. Effect is global.
Syntax
[unitOrGroup, permissionLevel] call grad_aicommand_fnc_setReceivePermissionLevel
Parameter | Explanation |
---|---|
unitOrGroup | Object or Group - The unit to set the receive commands permission level of. |
permissionLevel | Number - Permission level to receive commands. |
Example
[anAISoldier_1,3] call grad_aicommand_fnc_setReceivePermissionLevel;