superogira 12 Posted May 6, 2016 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
Tankbuster 1746 Posted May 6, 2016 player doesn't exist on a dedicated server. Share this post Link to post Share on other sites
killzone_kid 1331 Posted May 6, 2016 alive player is false on dedicated so the script never runs Share this post Link to post Share on other sites