VN_ms_module_fnc_tracker_aoDynamicSimToggle

From Savage Game Design Wiki
Revision as of 18:32, 5 January 2021 by Lou Montana (talk | contribs) (Text replacement - " |a= " to " |author= ")
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

/*
    File: fn_tracker_aoDynamicSim.sqf
    Author: Wyqer, veteran29
    Date: 2020-10-14
    Last Update: 2020-10-14
    Public: Yes

    Description:
        Toggle dynamic simulation for EXISTING groups. Will not apply for groups spawned in future.

    Parameter(s):
        _logic - AO Module with groups to toggle from [OBJECT, defaults to objNull]
        _enabled - Dynamic simulation state [BOOL, defaults to true]

    Returns:
        Groups that were processed [ARRAY]

    Example(s):
        [vn_ms_overlord, true] call vn_ms_module_fnc_tracker_aoDynamicSimToggle
*/

params [
    ["_logic", objNull, [objNull]],
    ["_enabled", true, [false]]
];

#ifdef VN_DEBUG
    systemChat format ["[VN_OVERLORD] Toggling dynamic sim: %1, %2", _logic, _enabled];
#endif

private _aoGroups = _logic call vn_ms_module_fnc_tracker_aoGroups;
(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)

Syntax

Syntax
[] call vn_ms_module_fnc_tracker_aoDynamicSimToggle;
Return value
Nothing

Examples

Example 1
-