RallyPoint

From cluster wiki
Revision as of 08:56, 16 June 2021 by Eric (talk | contribs) (Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Description
Description:

This function creates a spawnpoint system similar to Squad's rally points. It must be run locally (eg. from initPlayerLocal.sqf).

Execution:

call

Groups:

Gameplay Utility Functions: Eric's Mission Framework

Syntax
Syntax:

[unit, cooldown, physicalObject] call EMF_fnc_rallyPoint

Parameters:

unit:

  • Object - Unit to apply to.
  • Array - Units to apply to.
  • String - role to apply to.

cooldown: Number - (Optional) The cooldown between rally placements.[Default: 10]

physicalObject: String - (Optional) classname of the object to use.[Default: "Misc_backpackheap_EP1"]

Return Value:

Boolean - Returns true on success.

Examples
Example 1:
[player, 5] call EMF_fnc_rallyPoint;
Example 2:
["SL", 5, "Vysilacka"] call EMF_fnc_rallypoint;
Example 3:
[[Unit1, Unit2, Unit3], 15] call EMF_fnc_rallypoint;
Additional Information
See also:


Notes