mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
845 B
Plaintext
20 lines
845 B
Plaintext
// point of this file is to disable "auto-weather"
|
|
// we want this, because it breaks weather commands we use in this component
|
|
#include "script_component.hpp"
|
|
|
|
// cannot create checkboxes which have the default value true
|
|
// 3den uses inverted checkboxes instead, but those only change in appearence
|
|
// we have to auto set these settings manually - on mission creation
|
|
// we also want this on mission load, just to reach as many missions as possible
|
|
private _fnc_disableAutoWeather = {
|
|
set3DENMissionAttributes [
|
|
["Intel", "IntelRainIsForced", true],
|
|
["Intel", "IntelLightningIsForced", true],
|
|
["Intel", "IntelWavesIsForced", true],
|
|
["Intel", "IntelWindIsForced", true]
|
|
];
|
|
};
|
|
|
|
add3DENEventHandler ["onMissionNew", _fnc_disableAutoWeather];
|
|
add3DENEventHandler ["onMissionLoad", _fnc_disableAutoWeather];
|