mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8f46ffd8d5
count -> forEach Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
29 lines
504 B
Plaintext
29 lines
504 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Initializes the Rallypoint module.
|
|
*
|
|
* Arguments:
|
|
* 0: Logic <OBJECT>
|
|
* 1: Synced units <ARRAY>
|
|
* 2: Activated <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [logic, [ACE_Player], true] call ace_respawn_fnc_moduleRallypoint
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_logic", "_units", "_activated"];
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
{
|
|
_x setVariable ["ACE_canMoveRallypoint", true];
|
|
} forEach _units;
|
|
|
|
INFO("Rallypoint Module Initialized.");
|