Hey Pierre,
-I am making a MP game with only BLUFOR and OPFOR factions. My intention is to only respawn ALL BLUFOR vehicles at their START POSITION if destroyed.
-I have RHSUSAF and H60J Coast Guard Helicopter MODs loaded
-I also have respawn scripts for saving the loadouts of infantry players in the mission file (onPlayerKilled.sqf and onPlayerRespawn.sqf)
-the command line I'm using is:
0 = [[WEST],"start",10,false,true] spawn MGI_fnc_VehicleRespawn;
and the rest of the script is copy and paste
-I got the script to respawn vehicles properly but they seem to always respawn at the death position and occasionally spawn at the start position for choppers
-I dont have any markers and have tried an array of "start" but all of them still respawn the vehicle at death position.
-So I looked through your script and I believe the following line of code sets the respawn position as death position if no other markers or start positions are found:
_positions = _positions apply {if (getMarkerpos _x isEqualTo [0,0,0] && _x != "start") then {"death"} else {_x}}; private ["_idx","_positionType"];
-Then, I tried forcing the vehicles to spawn at start by changing {"death"} to {"start"}, but that just ended up not respawning the vehicles completely. I wonder if that means the game couldn't find a start position.
Plz help ;-;
117