Arma 3 Scripting

Command in Dynamic Simulation

setDynamicSimulationDistance

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets activation distance of Arma 3: Dynamic Simulation for given category.

Syntax

category setDynamicSimulationDistance distance

Parameters:

Returns: Nothing

Examples

Example 1

"Group" setDynamicSimulationDistance 1000;

See also

Arma 3: Dynamic Simulation · dynamicSimulationDistance · setDynamicSimulationDistanceCoef · dynamicSimulationDistanceCoef

Community notes

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 simulation if you are using long-scope optics, so there's an even better solution using cameraView with it:

0 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;
    };
};