Ghostrider-DBD

blckeagls Missions: Dynamic, Static, Highly Configurable, Mission Creation Tools Included.

105 posts in this topic

58 minutes ago, TheDaddy said:

Thank you for this. Still working great on my server. 

Would you know how i could put my static missions into an array? so that it would chose a random one each restart? I have created several but dont want them all to spawn at the same time.

Many thanks.

This should work:

Spoiler

_staticMissions = [
    selectRandom[
    ["Exile","Altis","mission1.sqf"],    
    ["Exile","Altis","mission2.sqf"],
    ["Exile","Altis","mission3.sqf"],
    ["Exile","Altis","mission4.sqf"]
    ]
];

Note that you can have one block from which a choice is selected randomly for each of multiple lists

Spoiler

_staticMissions = [
    selectRandom[
    ["Exile","Altis","mission1.sqf"],    
    ["Exile","Altis","mission2.sqf"],
    ["Exile","Altis","mission3.sqf"],
    ["Exile","Altis","mission4.sqf"]
    ],

    selectRandom[
    ["Exile","Altis","mission5.sqf"],    
    ["Exile","Altis","mission6.sqf"],
    ["Exile","Altis","mission7.sqf"],
    ["Exile","Altis","mission8.sqf"]
    ],
];

 

  • Like 2

Share this post


Link to post
Share on other sites
Advertisement

Hi. i have any problems with freeze AI. Player penalties - all false, but AI freezing when player sit into any vehicles.

P.S. It work from new version, but
https://yadi.sk/i/ERvnNP0CiSz4Lw 

and privatVars is miss

Spoiler

15:21:54 Error in expression <e};
case "red":{_vehicle = selectRandom blck_AIPatrolVehiclesRed};
case "green":>
15:21:54   Error position: <blck_AIPatrolVehiclesRed};
case "green":>
15:21:54   Error Undefined variable in expression: blck_aipatrolvehiclesred
15:21:54 File q\addons\custom_server\Compiles\Vehicles\GMS_fnc_selectPatrolVehicle.sqf, line 9
15:21:54 Error in expression <{_vehicle = blck_AIPatrolVehicles};
};

_vehicle

>
15:21:54   Error position: <_vehicle

>
15:21:54   Error Undefined variable in expression: _vehicle
15:21:54 File q\addons\custom_server\Compiles\Vehicles\GMS_fnc_selectPatrolVehicle.sqf, line 15
15:21:54 Error in expression <hicle;
_missionPatrolVehicles pushBack [_v, _x];
}forEach _vehiclePatrolSpawns;
>
15:21:54   Error position: <_v, _x];
}forEach _vehiclePatrolSpawns;
>
15:21:54   Error Undefined variable in expression: _v
15:21:54 File q\addons\custom_server\Compiles\Missions\GMS_fnc_spawnMissionVehiclePatrols.sqf, line 23
15:21:54 Error in expression <e};
case "red":{_vehicle = selectRandom blck_AIPatrolVehiclesRed};
case "green":>
15:21:54   Error position: <blck_AIPatrolVehiclesRed};
case "green":>
15:21:54   Error Undefined variable in expression: blck_aipatrolvehiclesred
15:21:54 File q\addons\custom_server\Compiles\Vehicles\GMS_fnc_selectPatrolVehicle.sqf, line 9
15:21:54 Error in expression <{_vehicle = blck_AIPatrolVehicles};
};

_vehicle

>
15:21:54   Error position: <_vehicle

>
15:21:54   Error Undefined variable in expression: _vehicle
15:21:54 File q\addons\custom_server\Compiles\Vehicles\GMS_fnc_selectPatrolVehicle.sqf, line 15
15:21:54 Error in expression <hicle;
_missionPatrolVehicles pushBack [_v, _x];
}forEach _vehiclePatrolSpawns;
>
15:21:54   Error position: <_v, _x];
}forEach _vehiclePatrolSpawns;
>
15:21:54   Error Undefined variable in expression: _v
15:21:54 File q\addons\custom_server\Compiles\Missions\GMS_fnc_spawnMissionVehiclePatrols.sqf, line 23
15:21:54 "A3XAI Debug: Respawning AI land vehicle patrol type Exile_Car_Strider."
15:21:55 "[blckeagls] Timstamp 516.77 |Dynamic Missions Running 3 | UMS Running 2 | Vehicles 3 | Groups 4 | Server FPS 17.9574 | Server Uptime 8 Min | Missions Run 0"
15:21:55 Cannot create entity with abstract type B_ViperHarness_base_F (scope = private?)
15:21:56 Error in expression <;


_patrolVehicle = [_coords,_spawnPos,_vehicle,40,60,_vehGroup,true] call blck>
15:21:56   Error position: <_vehicle,40,60,_vehGroup,true] call blck>
15:21:56   Error Undefined variable in expression: _vehicle
15:21:56 File q\addons\custom_server\Compiles\Missions\GMS_fnc_spawnMissionVehiclePatrols.sqf, line 47

 

Edited by leonardos1978

Share this post


Link to post
Share on other sites

Thank you but i need two AI side for my server... there is only one side...how to add another side ?

Edited by NeverAgain

Share this post


Link to post
Share on other sites

Hi all,

Is there a best way to change the attack helicopters to less aggressive ones like the pawne?
I assume its changing this  blck_patrolHelisOrange = _blck_armed_attackHelis + _blck_armed_heavyAttackHelis;  to  this blck_patrolHelisOrange = _blck_armed_hellcats + _blck_littleBirds; on blck_configs_mil

  Thanks

Edited by MrNeal
Changed question

Share this post


Link to post
Share on other sites

Hi, did anybody try to make a function "claimed vehicles" for mission's car ?

I try this  _veh setVariable ["ExileIsPersistent", false]; at GMS_fnc_spawnVehiclePatrol.sqf

Edited by leonardos1978
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.