Skip to content

Group Join

shadow-fa edited this page Feb 1, 2018 · 2 revisions
File location f\groupJoin\f_groupJoinAction.sqf
Enabled by default? Yes
Enable/Disable in init.sqf
Runs on client

This component allows a player to join another group. To do so, the player must be within 2.5m of another group's player, at which point an option appears in the action menu (visible by moving the scroll-wheel). Some restrictions apply:

  • Players in vehicles must dismount to allow someone to join their group.
  • The player cannot join a group that has no playable units in it.
  • This component may not work reliably with respawn.

How to disable

Open the file init.sqf, find the following line:

[false] execVM "f\groupJoin\f_groupJoinAction.sqf";

and change it to:

//[false] execVM "f\groupJoin\f_groupJoinAction.sqf";

Parameters

f\groupJoin\f_groupJoinAction.sqf only takes a single paramater:

# Name Type Default Description
0 _allowDifferentSide boolean false Allow joining groups from other sides

Usage

By default this component is configured so a player can only join groups on the same side. No further configuration is required.

Allowing players to join groups from other sides

To allow players to join groups from different sides, open init.sqf, find the following line:

[false] execVM "f\groupJoin\f_groupJoinAction.sqf";

and change it to:

[true] execVM "f\groupJoin\f_groupJoinAction.sqf";

Clone this wiki locally