mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added Slideshow mission tool
This commit is contained in:
38
addons/slideshow/functions/fnc_moduleInit.sqf
Normal file
38
addons/slideshow/functions/fnc_moduleInit.sqf
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Author: Jonpas
|
||||
* Initializes the module.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The module logic <LOGIC>
|
||||
* 1: Units <ARRAY>
|
||||
* 2: Activated <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
if !(isServer) exitWith {};
|
||||
|
||||
PARAMS_3(_logic,_units,_activated);
|
||||
|
||||
if !(_activated) exitWith {};
|
||||
|
||||
private ["_objects", "_controllers", "_return", "_images", "_names", "_controller"];
|
||||
|
||||
_logic = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
|
||||
if (isNull _logic) exitWith {};
|
||||
|
||||
// Extract variables from logic
|
||||
_objects = [_logic getVariable ["Objects", ""], true, true] call FUNC(makeList);
|
||||
_controllers = [_logic getVariable ["Controllers", ""], true, true] call FUNC(makeList);
|
||||
_images = [_logic getVariable ["Images", ""], true, false] call FUNC(makeList);
|
||||
_names = [_logic getVariable ["Names", ""], true, false] call FUNC(makeList);
|
||||
|
||||
// Prepare with actions
|
||||
[_objects, _controllers, _images, _names] call FUNC(createSlideshow);
|
||||
|
||||
diag_log text format ["[TAC]: Slideshow Module Initialized for: %1", _objects];
|
Reference in New Issue
Block a user