Need this skin to have this action
Its an AI unit
Skin is Graves_Light added the unit through the server pbo
what is wrong
Its an AI unit
Skin is Graves_Light added the unit through the server pbo
Code:
_unit_224 = objNull;
if (true) then
{
_this = createAgent ["Graves_Light", [7685.6807, 1445.8789, 0.42305249], [], 0, "CAN_COLLIDE"];
_unit_223 = _this;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; ";
_this setUnitAbility 0.60000002;
_this allowDammage fals
what is wrong
Code:
_hascode = _cursorTarget isKindOf "Graves_Light";
if (_hascode && _canDo) then {
if (s_player_code < 0) then {
Cooldown = 0;
s_player_code = player addAction ["Ask: Whats the code?", "bunker\ask.sqf",_cursorTarget, 1, true, true, "", ""];
}
} else {
player removeAction s_player_code;
s_player_code = -1;
};