Jump to content
TMZulu

Custom Respawn waves. Need Help.

Recommended Posts

Hello, I am trying to create a company v company PvP mission. This being said, I have a bit of a lack of in depth knowledge when it comes to controlling multiple players in the middle of a mission to create a custom respawn wave. To clarify, I have platoon markers that update dynamically based on group leader positions. Once a player dies they respawn on debug island and enter into spectator while being forced into grpNull. This mission incorporates an admin game master controlling mission start via public variables and the admin debug console. 

 

I have run into trouble when trying to figure out how to incorporate a respawn wave that will form a new platoon or squad. I am not sure how to get the list of player on debug island and then use that list to create a new squad/platoon. I suppose I will have to incorporate a dialog for players to choose their slots/role in this new platoon. I know how to group the players as well as applying new dynamic markers. I'm just not sure how to get the players identified and then resorted into groups.

 

To simplify, I want the script to:

  • Get a list of players on debug island/dead pool
  • Reorganize those players into a platoon
  • Allow the platoon's squads to have dynamic markers on the leaders, PL & SLs
  • Be triggered by admin game master
  • Will likely have to incorporate dialog to select slots/roles( if anyone has an good resources for something like that let me know)

 

Feel free to ask if you need me to clarify anything.

Any resources or references help.

Code as it stands(basically just the name generator for markers):

_names = ["Delta","Echo","Foxtrot","Golf","Hotel"]

while {true} do {
waituntil {(respawnWaveB == 1)};
respawnWaveB =0;
  if ((player distance (getmarkerpos "respawn")<2000)) do{
    private ["_wave","_firstLetter","_plName"];
    _wave = waveBNumber - 1;
    _plName =  _names select _wave;
    _s = _plName splitString "";
    _firstletter = _s select 1;
    _markerL = _plName;
    _marker1 = [_firstletter,"1"] joinstring "";
    _marker2 = [_firstletter,"2"] joinstring "";
    _marker3 = [_firstletter,"3"] joinstring "";

  };//close if
};//close while

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×