Skip to content

Staging Zone

Broström.A | Evul edited this page Nov 12, 2023 · 22 revisions

Make a staging zone

The staging zone is automatically created around all respawn_west (number suffix _123 also work) marker as well as our Starter crate. They cover 60 meters around the marker and 25 meter around the create location. You can also manually declare a zone using the magic marker name zone_staging (see below) or by using the following function:

/* Arguments:
 * 0: Zone <OBJECT/STRING/ARRAY>
 * 1: Zone Size <NUMBER/STRING> (Optional) [Default; 12]
 */

[this] call cScripts_fnc_addStagingZone
[this, 3] call cScripts_fnc_addStagingZone
["zone_staging", 12] call cScripts_fnc_addStagingZone
["respawn_west", 12] call cScripts_fnc_addStagingZone
[[10,25,0], 12] call cScripts_fnc_addStagingZone
["ShapedZoneMarker", "RECTANGLE"] call cScripts_fnc_addStagingZone
["ShapedZoneMarker", "ELLIPSE"] call cScripts_fnc_addStagingZone

This function can be declared in init.sqf if you declare a VariableName of the object.

You can also place down a marker and name it zone_staging (number suffix _123 does also work). This will automatically get a zone of 60 meters around them

Zeus

Disable/Enable all staging zones

Zeus can via a module disable access to all staging zones.

Enable staging everywere

It is possible as Zeus to enable staging zones for all or targeted soldier using code execution.

Global execution will enable the staging zones for all player JIP players will not be effected.

cScripts_Staging_ZoneStatus = true;

Mission settings

Disable staging system

It is possible to disable staging system in the mission settings under the staging category.

Allow all loadouts

It is possible to removing the company blocker for loadouts in the missing settings under the staging category.

Adding custom zones

Added in 4.4.0

It is possible to add custom staging zones by calling cScripts_fnc_addStagingZone in init.sqf or on a objectInit. The function accept markers and objects.

[this, 12] call cScripts_fnc_addStagingZone

Trigger zone

Added in 4.4.0 It is possible to make a trigger to act as a stageing zone. You need to be a little bit carful with this system and follow the guide below carfully so you dont accedently give everyone on the map stageing options mid mission.

  • Type: None
  • Activation:: AnyPlayer
  • Activation Type: Present
  • Condition: player inArea thisTrigger
  • On Activation: cScripts_Staging_ZoneStatus = true;
  • On Deactivation: cScripts_Staging_ZoneStatus = false;

Allow all loadouts

It is possible to show all loadouts for all players. This can be switched in the settings menu as well as activated via scripts.

cScripts_Staging_showAllLoadouts = true;
cScripts_Staging_showAllLoadouts = false;

See also

cScripts Development Wiki

Clone this wiki locally