mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added support without ace_intract_menu
This commit is contained in:
parent
016f45f0e8
commit
2e386038b7
@ -33,6 +33,12 @@ _images = [_logic getVariable ["Images", ""], true, false] call FUNC(makeList);
|
||||
_names = [_logic getVariable ["Names", ""], true, false] call FUNC(makeList);
|
||||
_duration = _logic getVariable ["Duration", 0];
|
||||
|
||||
// If interaction menu module is not present, set default duration value
|
||||
if (["ace_interact_menu"] call EFUNC(common,isModLoaded)) then {
|
||||
_duration = 5;
|
||||
diag_log "[ACE]: ace_interact_menu not present, assuming default Slideshow duration value.";
|
||||
};
|
||||
|
||||
// Prepare with actions
|
||||
[_objects, _controllers, _images, _names, _duration] call FUNC(createSlideshow);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user