setCanReceiveCommands - gruppe-adler/grad-aiCommand GitHub Wiki
grad_aicommand_fnc_setCanReceiveCommands
Sets if a unit or a group can receive commands from players. If the value of a leader differs from that of his group, the leader's value takes precedence. If neither is set, the canReceiveCommandsDefault
value is used. Effect is global.
Syntax
[unitOrGroup, canReceive] call grad_aicommand_fnc_setCanReceiveCommands
Parameter | Explanation |
---|---|
unitOrGroup | Object or Group - The unit to set the receive commands ability of. |
canReceive | Bool - Can this unit receive commands? |
Example
[anAISoldier_1,false] call grad_aicommand_fnc_setCanReceiveCommands;