Still not getting all this, sorry to be a pain Sycosis
Correct me if i'm wrong here :
1 - In my init.sqf after adding the _aispawn i add the _aiunit addMPEventHandler line ? Example
Code:
_aispawn = [[7544.88,7917.35,0],400,15,4,1,1] execVM "scripts\add_unit_server.sqf"; _aiunit addMPEventHandler ["MPkilled", {Null = [_this,_aispawnpos,_wpradius,_wpnum,_numunits,_unittype,_faction] execVM "scripts\unit_killed.sqf";}];
Do i add this after every _aispawn line ?
2 - I then create a new file called unit_killed.sqf and inside that add :
Code:
private["_handler","_aispawnpos","_wpradius","_wpnum","_numunits","_unittype","_faction"];
_position = this select 1;
_radius = this select 2;
_waypoints = this select 3;
_unitNum = this select 4;
_unitType = this select 5;
_faction = this select 6;
sleep 1800; //30 minutes
_aispawn = [[7544.88,7917.35,0],400,15,4,1,1] execVM "scripts\add_unit_server.sqf";
Do i have to copy all the _aispawn lines ? so technically we could choose which units respawn and which units will stay dead
The bit i don't get is when it comes to respawning the randoms and squads, I have a few squads and this you're referring to the entry in the add_unit_server.sqf file ? On line 7 i have this :
Code:
_unitType = _this select 4;
So would i change the 4 to y ? I'm not understanding that part.
Thank you in advance