Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
ripdok

Бот десант

Подскажите пожалуйста как заставить ботовский верт не скидывать десант на парашютах, а снизиться и высадить десант на землю? :smile:

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts




  • 0

Как это корректно впилить в миссию? (к примеру)

if(isServer) then {

private ["_complete","_dir","_rndnum","_crate_type","_mission","_position","_vehclass3","_vehclass2","_vehicle3","_vehicle2","_playerPresent","_vehicle","_vehclass","_crate"];

_position = [40] call find_position;
_mission = [_position,"Hard","Lunch break Convoy","MainBandit",true] call mission_init;

diag_log format["WAI: [Mission:[bandit] Lunch break Convoy]: Starting... %1",_position];

//Setup the crate
_crate_type = crates_large call BIS_fnc_selectRandom;
_crate = createVehicle [_crate_type,[(_position select 0),(_position select 1),0],[],0,"CAN_COLLIDE"];

//Troops
_rndnum = 5 + round (random 3);
[[_position select 0,_position select 1,0],_rndnum,"Hard","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Hard","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Random","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0,_position select 1,0],5,"Random","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

//Static Guns
[[
[(_position select 0) + 25, (_position select 1) + 25, 0],
[(_position select 0) - 25, (_position select 1) - 25, 0],
[(_position select 0) + 25, (_position select 1) - 25, 0]
],"M2StaticMG","Easy","Hero","Hero",1,2,"Random","Random",_mission] call spawn_static;

//Heli Para Drop
[[(_position select 0),(_position select 1),0],[0,0,0],400,"BAF_Merlin_HC3_D",10,"Random","Random",4,"Random","Hero","Random","Hero",false,_mission] spawn heli_para;

// Spawn Vehicles
_dir = floor(round(random 360));

_vehclass = cargo_trucks call BIS_fnc_selectRandom; // Cargo Truck
_vehclass2 = refuel_trucks call BIS_fnc_selectRandom; // Refuel Truck
_vehclass3 = military_unarmed call BIS_fnc_selectRandom; // Military Unarmed

_vehicle = [_vehclass,_position,false,_dir] call custom_publish;
_vehicle2 = [_vehclass2,_position,false,_dir] call custom_publish;
_vehicle3 = [_vehclass3,_position,false,_dir] call custom_publish;

if(debug_mode) then {
diag_log format["WAI: [bandit] ikea_convoy spawned a %1",_vehclass];
diag_log format["WAI: [bandit] ikea_convoy spawned a %1",_vehclass3];
diag_log format["WAI: [bandit] ikea_convoy spawned a %1",_vehclass2];
};

//Condition
_complete = [
[_mission,_crate], // mission number and crate
["crate"], // ["crate"], or ["kill",wai_kill_percent], or ["assassinate", _unitGroup],
[_vehicle,_vehicle2,_vehicle3], // cleanup objects
"A heavily guarded Ikea convoy is taking a lunch break, heroes are securing the parameter. See if you can make the building supplies yours.", // mission announcement
"Bandits have successfully ambushed the Ikea convoy and secured the building supplies!", // mission success
"Bandits were unable to surprise the heroes on their lunchbreak" // mission fail
] call mission_winorfail;

if(_complete) then {
[_crate,[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4] call dynamic_crate;
};

diag_log format["WAI: [Mission:[bandit] Lunch break Convoy]: Ended at %1",_position];

b_missionrunning = false;
};

 

Edited by ripdok (see edit history)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Similar Content

    • By JIIEKA
      Добрый вечер обитатели форума, Подскажите пж как добавить блуждающего бота, или животное на карту.?
      DayZ EpocH 1.0.5.1
      чтобы бегал как обычный игрок.
    • By TheLinsus
      Видел такую фичу: на сервере всегда присутствует игрок (бот) с ником Admin например. Т.е. после рестарта он сам заходит и сидит там 24/7
      Кто-нибудь знает как такого бота создать?
    • By ripdok
      Кастомные патрули, стационарки работают без проблем, а десант не пашет как ни крутил. В рпт такая инфа:
       
       
       
      Пример десанта:
      [[14330.0000,16980.0000,0],[0,0,0],400,"Mi17_DZE",8,1,2,2,"DZ_ALICE_Pack_EP1","Soldier1_DZ","Random","Bandit",True] spawn heli_para;
       
      Что посоветуете?
      Спасибо.


      Пробывал примеры десанта из default и образец CustomSpawn - толку нет...
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.