setDynamicSimulationDistance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 8: | Line 8: | ||
|descr= Sets activation distance of [[Arma 3: Dynamic Simulation]] for given category. | |descr= Sets activation distance of [[Arma 3: Dynamic Simulation]] for given category. | ||
|s1= category | |s1= category [[setDynamicSimulationDistance]] distance | ||
|p1= category: [[String]] - Can be: | |p1= category: [[String]] - Can be: | ||
Line 25: | Line 25: | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
Line 33: | Line 32: | ||
<dd class="note"> | <dd class="note"> | ||
Desired distances for "Group" and "Vehicle" must be based on [[viewDistance]] and [[fog]] to exclude any rendering problems with frequently moving objects. Example: | Desired distances for "Group" and "Vehicle" must be based on [[viewDistance]] and [[fog]] to exclude any rendering problems with frequently moving objects. Example: | ||
<code>"Group" [[setDynamicSimulationDistance]] (([[viewDistance]] * 0.8) - ([[viewDistance]] * fog)) | <code>"Group" [[setDynamicSimulationDistance]] (([[viewDistance]] * 0.8) - ([[viewDistance]] * [[fog]])) | ||
{{cc|80% of maximum rendering and fog distance}}</code> | |||
But that might impair objects simulations if you are using long-scope optics, so there's a even better solution using [[cameraView]] with it: | But that might impair objects simulations if you are using long-scope optics, so there's a even better solution using [[cameraView]] with it: | ||
<code>[] [[spawn]] { | <code>[] [[spawn]] { | ||
[[while]] {[[true]]} [[do]] { | [[while]] {[[true]]} [[do]] { | ||
[[if]] ([[cameraView]] [[isEqualTo]] "GUNNER") [[then]] { | [[if]] ([[cameraView]] [[isEqualTo]] "GUNNER") [[then]] | ||
{ | |||
"Group" [[setDynamicSimulationDistance]] ([[viewDistance]] - ([[viewDistance]] * [[fog]])); | |||
} [[else]] { | {{cc|Scoped}} | ||
} | |||
[[else]] | |||
{ | |||
"Group" [[setDynamicSimulationDistance]] (([[viewDistance]] * 0.8) - ([[viewDistance]] * [[fog]])); | |||
{{cc|Not scoped}} | |||
}; | }; | ||
[[uiSleep]] 0.25; | [[uiSleep]] 0.25; | ||
Line 51: | Line 53: | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 14:01, 19 June 2021
Description
- Description:
- Sets activation distance of Arma 3: Dynamic Simulation for given category.
- Groups:
- Dynamic Simulation
Syntax
- Syntax:
- category setDynamicSimulationDistance distance
- Parameters:
- category: String - Can be:
- "Group" - Infantry units. Set to a reasonable distance, player should not see disabled infantry units. Default: 500m
- "Vehicle" - Vehicles with crew. Set to a reasonable distance, player should not see disabled vehicles. Default: 350m
- "EmptyVehicle" - All vehicles without crew. Separated from Props as Empty Vehicles have often more complex damage states and selective destruction. Their activation distance should by larger that the one used for Props. Default: 250m
- "Prop" - Static objects. Anything from a small tin can to a building. Default: 50m
- distance: Number
- Return Value:
- Nothing
Examples
- Example 1:
"Group" setDynamicSimulationDistance 1000;
Additional Information
- See also:
- Arma 3: Dynamic Simulation dynamicSimulationDistance setDynamicSimulationDistanceCoef dynamicSimulationDistanceCoef
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on March 19, 2017 - 20:52 (UTC)
- Demellion
-
Desired distances for "Group" and "Vehicle" must be based on viewDistance and fog to exclude any rendering problems with frequently moving objects. Example:
"Group" setDynamicSimulationDistance ((viewDistance * 0.8) - (viewDistance * fog)) // 80% of maximum rendering and fog distance
But that might impair objects simulations if you are using long-scope optics, so there's a even better solution using cameraView with it:[] spawn { while {true} do { if (cameraView isEqualTo "GUNNER") then { "Group" setDynamicSimulationDistance (viewDistance - (viewDistance * fog)); // Scoped } else { "Group" setDynamicSimulationDistance ((viewDistance * 0.8) - (viewDistance * fog)); // Not scoped }; uiSleep 0.25; }; };