Skip to content

setCanGive

McDiod edited this page Jan 10, 2017 · 1 revision

grad_moneymenu_fnc_setCanGive

Sets if unit can give money to other players. Overwrites default value from config. Effect is global.

Syntax

[unit, canGive] call grad_moneymenu_fnc_setCanGive

unit: Object - The unit to allow/disallow giving money.
canGive: Bool - Allow or disallow giving money.

Example

[this, false] call grad_moneymenu_fnc_setCanGive;
[player, true] call grad_moneymenu_fnc_setCanGive;