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:
Question
Sandbird
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:
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:
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:
Nothing worked...I dont see anything :blink:
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now