Jump to content

Recommended Posts

Hi, I'm writing a script for a mission.

The script is for an ia to drive a car to the marker.

When I play the mission locally and multiplayer on my pc, it works perfectly.

But, when running it on a dedicated server. The script does not work.

This is the script:

civ1 doMove (getMarkerPos "Marker1");
execVM "scripts\animation\animation1\charla1.sqf";
sleep 20;
civ1 doMove (getMarkerPos "Marker2");
sleep 30;
civ1 doMove (getMarkerPos "Marker3");
deleteVehicle civ1;
deleteVehicle car1;
deleteVehicle civ2;
deleteVehicle civ3;

How could I make it move to the marker?

Thanks for the help

Share this post


Link to post
Share on other sites

I have an init.sqf that contains this code:

if ((!isServer) && (player != player)) then {waitUntil {player == player};};
nul = [-1] execVM "AL_intro\intro.sqf";

and inside intro.sqf I have this:

execVM "scripts\animation\animation1\avionnegro.sqf";
sleep 17;
playsound "arrancapu";
sleep 3;
execVM "scripts\animation\animation1\coche1.sqf";
_firstshot = [cam1, cam2, car1, 20, 0.3, 0.1, false, 0, 0, 0,FALSE] execVM "AL_intro\camera_work.sqf";
waitUntil {scriptdone _firstshot};
_secondshot = [cam3, cam4, car1, 25, 1, 1, false, 0, 0, 0,FALSE] execVM "AL_intro\camera_work.sqf";
waitUntil {scriptdone _secondshot};
execVM "scripts\animation\animation2\coche2.sqf";
sleep 3.2;
__thirdshot = [cam6, cam7, car2, 30, 1, 1, false, 0, 0, 0,FALSE] execVM "AL_intro\camera_work.sqf";
waitUntil {scriptdone __thirdshot};
_fourshot = [cam8, cam9, car2, 20, 1, 1, false, 0, 0, 0,FALSE] execVM "AL_intro\camera_work.sqf";
waitUntil {scriptdone _fourshot};
_fiveshot = [cam10, cam11, car2, 25, 1, 1, false, 0, 0, 0,TRUE] execVM "AL_intro\camera_work.sqf";
waitUntil {scriptdone _fiveshot};

and drive1.sqf is where is the script that I put at the beginning

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

×