In this line:
I changed to:
Occurred kick restriction #80 when used "addMPEventHandler"
Note this example (init.sqf):
Whenever you are in Chernogorsk, and kill the npcs, the respawn
happen as the last line defined in init.sqf.
So I used the "getPosATL (_this Select 0)". And the respawn occurs where the npc is dead.
At the time, I used it because I do not know how to respawn occurs in the place of origin.
** When npc is dead, reappears in this dead place
(I'm from Brazil, my english is bad)
Code:
_aiunit addMPEventHandler["MPKilled",{null=_this+[aispawnpos,wpradius, ...
Code:
_aiunit addEventHandler["Killed",{null=_this+[(getPosATL (_this Select 0)),wpradius, ...
Occurred kick restriction #80 when used "addMPEventHandler"
Note this example (init.sqf):
Code:
if (isServer) then {
_factions = [] execVM "scripts\set_unit_faction.sqf";
//CHERNOGORSK
_aispawn = [[6689.49,2623.59,0],30,5,1,4,1,7,10,0,12] execVM "units\add_unit_server.sqf";
//AIRFIELD
_aispawn = [[4598.66,10197.7,0],30,5,1,4,1,7,10,0,12] execVM "units\add_unit_server.sqf";
};
Whenever you are in Chernogorsk, and kill the npcs, the respawn
happen as the last line defined in init.sqf.
So I used the "getPosATL (_this Select 0)". And the respawn occurs where the npc is dead.
At the time, I used it because I do not know how to respawn occurs in the place of origin.
** When npc is dead, reappears in this dead place
(I'm from Brazil, my english is bad)