I am trying to initialize a trader inside the dayz_server\missions\DayZ_Epoch_13.Tavi\mission.sqf to execute a script.
But no matter what i try in game i dont see the things that are executed.
For example:
_unit_100000 = objNull; if (true) then { _this = createAgent ["Citizen1", [1009.66,18247.7,0.00211143], [], 0, "CAN_COLLIDE"]; _unit_100000 = _this; _this setDir 270; _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; [this] spawn arrowAbove;"; _this setUnitAbility 0.60000002; [_this] spawn arrowAbove; _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false; };
Notice the [_this] spawn arrowAbove; and [this] spawn arrowAbove;
Now i have a function which i shared for both client and server (cause i was frustrated since nothing worked) and inside the function arrowAbove i got:
arrowAbove = { private ["_player","_zOffset","_pos","_veh"]; _player = _this select 0; _pos = getposATL _player; _zOffset = 3; _veh = createVehicle ["Sign_arrow_down_large_EP1", _pos, [], 0, "CAN_COLLIDE"]; _veh setPos [(_veh select 0),(_veh select 1), (_veh select 2)+_zOffset]; };
But when i get ingame i dont see anything above the trader.
If i diag_log the values they are all correct though.
What is going on ?
I even tried to have the above code in a script (without the value and brackets ofc) and just do this instead:
[_this] execVM "\z\addons\dayz_server\custom\arrowAbove.sqf";
Nothing worked...I dont see anything :blink: