Jump to content
superogira

Script not work in dedicated server. Bu t work fine in arma 3 host server

Recommended Posts

I use this script in multiplayer by host server in game it work fine.

But when I use it run in dedicated server AI not move follow player.

How to fix it?

while {alive player} do
{ 
hostagesub doMove getpos player;

sleep 1;

if ((hostagesub distance hostageheli) < 15) exitWith {
hostagesub moveInCargo hostageheli;
hostageheli engineOn true;
hostageheli doMove [15000,15000,300];
sleep 25;
_helphostagesuccess = "Delivered hostage to helicopter. Hostage rescue success!";
hqSideChat = _helphostagesuccess;
[hqSideChat] remoteExec ["AW_fnc_globalSideChat",0,false];
["CompletedSub", "Hostage Rescue Success."] remoteExec ["AW_fnc_globalNotification",0,false];
hostagesuccess = true; publicVariable "hostagesuccess";
sleep 60;
hostageheli setPos [8457.541,25096.2,0];
hostageheli setBehaviour "CARELESS";
hostageheli engineOn false;
hostagesub setPos [8420.275,25100.605,0];
hostagesub setBehaviour "CARELESS";
{ _x setMarkerPos [-10000,-10000,-10000]; } forEach ["hostageMarker","hostageCircle","hostagehelimarker"];

};
};

Share this post


Link to post
Share on other sites

player doesn't exist on a dedicated server.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×