Difference between revisions of "RallyPoint"

From cluster wiki
Jump to navigation Jump to search
Line 100: Line 100:


<!-- CATEGORIES -->
<!-- CATEGORIES -->
[[Category:Gameplay Utility Functions: Eric's Mission Framework]]
[[Category:Gameplay Functions: Eric's Mission Framework]]
[[Category:Functions: Eric's Mission Framework]]
[[Category:Functions: Eric's Mission Framework]]

Revision as of 13:11, 26 March 2022

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: Eric's Mission Framework

Syntax
Syntax:

[unit, cooldown, object] call emf_gameplay_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]

object: 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_gameplay_fnc_rallyPoint;
Example 2:
["SL", 5, "Vysilacka"] call emf_gameplay_fnc_rallyPoint;
Example 3:
[[Unit1, Unit2, Unit3], 15] call emf_gameplay_fnc_rallyPoint;
Additional Information
See also:


Notes