Soliders-in-Arms-Arma-3-Group / sia3f

MIT License
1 stars 0 forks source link

Automatically detect respawn modules #89

Open SiegeToaster opened 1 year ago

SiegeToaster commented 1 year ago

Respawn modules currently must have a specific variable name assigned to them in order to be recognized (e.g, respawn_west). While this works for allowing any object or module to be used as the respawn position, respawn modules could also be automatically detected.

Respawn modules uniquely use the naming scheme bis_o2_## by default, where ## is some number from 1 to something (highest I've seen was in the 400s). Keep in mind, I am not certain that other modules/objects also use this scheme. We could exploit this to automatically detect respawn modules by using a for loop, although idk how we would detect which side to assign the respawn to.