Lights – Arma 3 Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>" to "<code style="display: block">")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Previous lights on randomization formula ==
== Previous lights on randomization formula ==


<code>[[private]] _isLightsOnTime = [0,0,0] [[getEnvSoundController]] "night" > _vehicle [[getSoundController]] "randomizer" * 0.6 + 0.2;</code>
<code style="display: block">[[private]] _isTimeForLightsOn = [0,0,0] [[getEnvSoundController]] "night" > _vehicle [[getSoundController]] "randomizer" * 0.6 + 0.2;</code>

Latest revision as of 11:52, 11 January 2023

Previous lights on randomization formula

private _isTimeForLightsOn = [0,0,0] getEnvSoundController "night" > _vehicle getSoundController "randomizer" * 0.6 + 0.2;