setDynamicSimulationDistance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Dynamic Simulation |GROUP1= | |gr1= Dynamic Simulation |GROUP1= | ||
| Sets activation distance of [[Arma_3_Dynamic_Simulation]] for given category|DESCRIPTION= | | Sets activation distance of [[Arma_3_Dynamic_Simulation]] for given category|DESCRIPTION= | ||
| category '''setDynamicSimulationDistance''' distance |SYNTAX= | | category '''setDynamicSimulationDistance''' distance |SYNTAX= | ||
Line 26: | Line 23: | ||
|x1= <code>"Group" [[setDynamicSimulationDistance]] 1000;</code>|EXAMPLE1= | |x1= <code>"Group" [[setDynamicSimulationDistance]] 1000;</code>|EXAMPLE1= | ||
| [[enableDynamicSimulationSystem]], [[dynamicSimulationSystemEnabled]], [[enableDynamicSimulation]], [[dynamicSimulationEnabled]], [[dynamicSimulationDistance]], [[setDynamicSimulationDistanceCoef]], [[dynamicSimulationDistanceCoef]], [[triggerDynamicSimulation]], [[canTriggerDynamicSimulation]], [[enableSimulation]], [[simulationEnabled]], [[enableSimulationGlobal]], [[Arma_3_Dynamic_Simulation]] |SEEALSO= | | [[enableDynamicSimulationSystem]], [[dynamicSimulationSystemEnabled]], [[enableDynamicSimulation]], [[dynamicSimulationEnabled]], [[dynamicSimulationDistance]], [[setDynamicSimulationDistanceCoef]], [[dynamicSimulationDistanceCoef]], [[triggerDynamicSimulation]], [[canTriggerDynamicSimulation]], [[enableSimulation]], [[simulationEnabled]], [[enableSimulationGlobal]], [[Arma_3_Dynamic_Simulation]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:48, 17 January 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 - one of:
- "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:
- enableDynamicSimulationSystemdynamicSimulationSystemEnabledenableDynamicSimulationdynamicSimulationEnableddynamicSimulationDistancesetDynamicSimulationDistanceCoefdynamicSimulationDistanceCoeftriggerDynamicSimulationcanTriggerDynamicSimulationenableSimulationsimulationEnabledenableSimulationGlobalArma_3_Dynamic_Simulation
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
Notes
- 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; }; };
Bottom Section