Jump to content
Sign in to follow this  
Nailpolish

How do I get a script to repeat (on dedicated)

Recommended Posts

you could add a while {true} do {

and then at the bottom put sleep 30; and then close bracket oh and also if (isServer) then { and close bracket

Share this post


Link to post
Share on other sites

Already tried both of those, neither worked on a dedicated server

Share this post


Link to post
Share on other sites
Already tried both of those, neither worked on a dedicated server

Alright then make it a function so example

Nailpolish_fnc_random_aircraft = {
while {true} do {
blah blah blah;
sleep 30;
     };
};
[Nailpolish_fnc_random_airfract] call BIS_FNC_MP;

Share this post


Link to post
Share on other sites

Do you have -showScriptErrors on?

Alright then make it a function so example

Nailpolish_fnc_random_aircraft = {
while {true} do {
blah blah blah;
sleep 30;
     };
};
[Nailpolish_fnc_random_airfract] call BIS_FNC_MP;

These are not the correct parameters, furthermore why would you try to send it over the net?

Edited by cuel

Share this post


Link to post
Share on other sites

if (isDedicated) then {
   while {true} do {
       *insert script code*
       sleep 30;
   };
};

Presuming you want it to only run on a dedicated server rather than any type of server. If this doesn't work then I can only assume you're not running this correctly - in which case more information would be needed.

Share this post


Link to post
Share on other sites

Doesn't fucking work

there's something about the script and specifically about the script that stops it from spawning any aircraft on anything but a local host.

thanks bohemia

Share this post


Link to post
Share on other sites

It's your script. Like I said enable script errors and check for any errors and ost them here.

Share this post


Link to post
Share on other sites

I have script errors enabled, it is throwing no errors.

So how am I supposed to know what's wrong with it?

Share this post


Link to post
Share on other sites

Post more information like asked or, maybe an example mission?

Dirty Haz

Share this post


Link to post
Share on other sites

The whole script is in the pastebin of the OP

And the debugging tutorial doesn't help me at all.

Obviously I'm dealing with a locality issue, but it's only a problem here and not anywhere else where I use similair functions or syntax to do pretty much the exact same thing.

Here's the mission: http://www.mediafire.com/download/8ox4ppp0ai3wu61/StopGap01.altis.pbo

Share this post


Link to post
Share on other sites

Don't have time to launch arma, how far away is aaa1 from aaa2? Are you sure the script is actaully launched?

Share this post


Link to post
Share on other sites

they're 20m away from each other, yes the script is launched.

like I said, this works great but only on localhost and it's giving me no errors that I can see

Share this post


Link to post
Share on other sites

Is the pastebin snippet the whole script? If not post the whole script here (use the PHP code wrapper)

It doesn't seem you're executing the vehicle spawns/WP's on the server, which I would recommend in an MP environment.

Share this post


Link to post
Share on other sites

The pastebin is the whole script, and how the hell isn't it executing it on the server if it's within a while {isserver} loop?

Share this post


Link to post
Share on other sites

Wow, take it easy. This is what you posted on pastebin:

"//AIRCRAFT spawns
_randomarray1 = [1,2,3,4,5];
_randomtype = _randomarray1 select (floor (random (count _randomarray1)));
objective1 = "spawn";
_randx = (random 2000) - 1000;
_randy = (random 2000) - 1000;
_newpos = [(getmarkerpos objective1 select 0) + _randx, (getmarkerpos objective1 select 1) + _randy,0];
_enemyairarray = [0,1];
_enemyairtype = _enemyairarray select (floor (random (count _enemyairarray)));
if(_enemyairtype==0) then{
	if(_randomtype==1) then{
			_vehicle1 = [(getpos airspawn1), floor(random 360), "O_Heli_Attack_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn2), floor(random 360), "O_Heli_Attack_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;       
			_aircraft1 removeweapon "missiles_scalpel";
			_aircraft2 removeweapon "missiles_scalpel";
			};
	if(_randomtype==2) then{               
			_vehicle1 = [(getpos airspawn3), floor(random 360), "O_Mi24_V", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn4), floor(random 360), "O_Mi24_V", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			_aircraft1 removeweapon "AT6Launcher";
			_aircraft2 removeweapon "AT6Launcher";
			};
	if(_randomtype==3) then{
			_vehicle1 = [(getpos airspawn5), floor(random 360), "PLA_WZ35", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn6), floor(random 360), "PLA_WZ35", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			_aircraft1 removeweapon "missiles_scalpel";
			_aircraft2 removeweapon "missiles_scalpel";
			};
	if(_randomtype==4) then{
			_vehicle1 = [(getpos airspawn7), floor(random 360), "SUD_MI48_RU", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;

			_vehicle2 = [(getpos airspawn8), floor(random 360), "SUD_MI48_RU", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;               
			_aircraft1 removeweapon "missiles_scalpel";
			_aircraft2 removeweapon "missiles_scalpel";
			};
	if(_randomtype==5) then{
			_vehicle1 = [(getpos airspawn9), floor(random 360), "O_Heli_Light_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn10), floor(random 360), "O_Heli_Light_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;               
			_aircraft1 removeweapon "missiles_dagr";
			_aircraft2 removeweapon "missiles_dagr";
			};
	};
if(_enemyairtype==1) then{
	if(_randomtype==1) then{
			_vehicle1 = [(getpos airspawn1), floor(random 360), "O_Plane_CAS_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn2), floor(random 360), "O_Plane_CAS_02_F", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			_aircraft1 removeweapon "Missile_AGM_01_Plane_CAS_02_F";
			_aircraft2 removeweapon "Missile_AGM_01_Plane_CAS_02_F";
			};
	if(_randomtype==2) then{               
			_vehicle1 = [(getpos airspawn3), floor(random 360), "PLA_J30_CAS", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn4), floor(random 360), "PLA_J30_CAS", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			_aircraft1 removeweapon "missiles_scalpel";
			_aircraft2 removeweapon "missiles_scalpel";
			};
	if(_randomtype==3) then{
			_vehicle1 = [(getpos airspawn5), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn6), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			};
	if(_randomtype==4) then{
			_vehicle1 = [(getpos airspawn7), floor(random 360), "JS_JC_SU35", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn8), floor(random 360), "JS_JC_SU35", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			_aircraft1 removeweapon "js_w_su35_kh29Launcher";
			_aircraft2 removeweapon "js_w_su35_kh29Launcher";
			};
	if(_randomtype==5) then{
			_vehicle1 = [(getpos airspawn9), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle1 select 0];
			_aircraft1 = _vehicle1 select 0;               
			_vehicle2 = [(getpos airspawn10), floor(random 360), "Su25_bomb", EAST] call bis_fnc_spawnvehicle;
			{
			_wp = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp setWaypointType "MOVE";
			_wp2 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp2 setWaypointType "MOVE";
			_wp3 = group _x addWaypoint [[(_newpos select 0) + (random 1800 - 900), (_newpos select 1) + (random 1800 - 900), 0],0];
			_wp3 setWaypointType "MOVE";
			_wp4 = group _x addWaypoint [position _x, 0];
			_wp4 setWaypointType "CYCLE";
			} foreach [_vehicle2 select 0];
			_aircraft2 = _vehicle2 select 0;
			};
	};

It is clearly NOT the whole script. And there's no if (!isServer) exitWith {};

Share this post


Link to post
Share on other sites

Didn't find the error but I did discover a way to make this bullshit work.

firing the script through the init would not work

placing down a trigger and firing it from there did

bohemia's incompetence knows no bounds

Share this post


Link to post
Share on other sites

Well i think it's rather your incompetence of giving exact infromation for a lot of people who are trying to help you...

When your script is not working it's most likely a error in your script and that has nothing to do with BI, so calm down and then people might help you to solve your problem.

E: I see where your problem could be:

_enemyairarray = [0,1];
_enemyairtype = _enemyairarray select (floor (random (count _enemyairarray)));

Count will return "2", so floor random can return 0,1 and 2. But in your script only _enemyairtype 0 and 1 are defined.

Most likley your script will end after the checks if (_enemyairtype == x) because _enemyairtype is 2.

better use BIS_fnc_selectRandom to avoid this.

Now tell me, what has BI to do with this? :j:

Edited by Lappihuan

Share this post


Link to post
Share on other sites
Didn't find the error but I did discover a way to make this bullshit work.

firing the script through the init would not work

placing down a trigger and firing it from there did

bohemia's incompetence knows no bounds

I'm seriously impressed by how much effort you guys put into helping this person, despite his obvious attitude problem.

:clap:

@Nailpolish, ppl asked you several times to post the whole script. (that includes the part of the init where you tried to run it) Is that so hard to understand?

ps.: No idea where u got that script from but it would be advisable to either use a function or variables for spawning the aircrafts instead of repeating the same code over and over. Makes everything alot easier to handle.

Share this post


Link to post
Share on other sites
I'm seriously impressed by how much effort you guys put into helping this person, despite his obvious attitude problem.

:clap:

And all for naught, because it turns out he is just yet another incarnation of a known troll. :rolleyes:

Sorry guys.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×