I need to set a global variable in a unit on the server. How can i check that variable after on the client side ?
Its for a bot i want to have a 'dialog' with. I need to access the 'name' of the bot.
On my server i got:
_sideGroup = createGroup WEST;
_unit_4 = objNull;
if (true) then
{
_this = _sideGroup createUnit ["Graves_Light_DZ", [5101.4746, 2550.7922, 0.36117637], [], 0, "CAN_COLLIDE"];
_unit_4 = _this;
_this setDir -29.416721;
_this setVehicleVarName "botunit";
botunit= _this;
_this setUnitAbility 0.60000002;
if (true) then {_sideGroup selectLeader _this;};
_this addEventHandler ["HandleDamage", {false}];
_this allowDammage true;
};
and on the client side i want to do this:
if ((!isNull cursorTarget) && (player distance botunit<= 5)) then {
.....
};
I've tried this but it doesnt recognize 'botunit'.
Anyone knows ?
Aslo....how will the 'bot' send side messages to the player ?

