Skip to content
tuntematonjr edited this page Dec 8, 2024 · 9 revisions

In editor.

Atributes -> Multiplayer -> Respawn = Respawn on Custom Position and uncheck all options.

There is automatic tool to do that.

In missin you need following modules

  • tunres_respawn_moduleRespawnPoint
  • tunres_respawn_moduleWaitingArea

If using gearscript, unit must have defined following variables.

-Tun_Respawn_Role //param/role which define what gear to give unit. If this is missing, script will give error when trying to run _unit setVariable ["tunres_respawn_Role","SL", true]; // Tun respawn gear variable

-Tun_Respawn_gearPath //Path to gearscript file what will be run on respawn. _unit setVariable ["tunres_respawn_GearPath","loadouts\VDVDesert.sqf", true]; // Tun respawn gearscript path

At respawn this will call following line [_role, player] call compile preprocessFileLineNumbers _gearScriptPath; so you get 2 params, first one is Tun_Respawn_Role and second is player. First one can be used to give params you need.