enableDynamicSimulation: Difference between revisions

From Bohemia Interactive Community
(Added note about crewed vehicles)
m (Added more information to the description)
 
Line 11: Line 11:
|gr1= Dynamic Simulation
|gr1= Dynamic Simulation


|descr= Enables or disables [[Arma 3: Dynamic Simulation]] for given non AI object.
|descr= Enables or disables [[Arma 3: Dynamic Simulation]] for an object or group.
 
{{Feature|important|Dynamic simulation for AI units operates on [[Group]]s:
<sqf>
_unit enableDynamicSimulation true; // Does not work
group _unit enableDynamicSimulation true; // Works
</sqf>
It is not possible to enable dynamic simulation for groups that contain a player unit.
}}


{{Feature|informative|This command has no effect on ''mines''!}}
{{Feature|informative|This command has no effect on ''mines''!}}


|s1= object [[enableDynamicSimulation]] enable
|s1= target [[enableDynamicSimulation]] enable


|p1= object: [[Object]] or [[Group]]
|p1= target: [[Object]] or [[Group]]
|p2= enable: [[Boolean]]
|p2= enable: [[Boolean]]



Latest revision as of 19:54, 21 January 2026

Hover & click on the images for description

Description

Description:
Enables or disables Arma 3: Dynamic Simulation for an object or group.
Dynamic simulation for AI units operates on Groups:

_unit enableDynamicSimulation true; // Does not work group _unit enableDynamicSimulation true; // Works

It is not possible to enable dynamic simulation for groups that contain a player unit.
This command has no effect on mines!
Groups:
Dynamic Simulation

Syntax

Syntax:
target enableDynamicSimulation enable
Parameters:
target: Object or Group
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
_myObject enableDynamicSimulation true;

Additional Information

See also:
enableDynamicSimulationSystem dynamicSimulationSystemEnabled dynamicSimulationEnabled setDynamicSimulationDistance dynamicSimulationDistance setDynamicSimulationDistanceCoef dynamicSimulationDistanceCoef triggerDynamicSimulation canTriggerDynamicSimulation enableSimulation simulationEnabled enableSimulationGlobal Arma 3: Dynamic Simulation

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
ansin11 - c
Posted on Jan 21, 2026 - 18:41 (UTC)

According to Discord user Marko, dynamic simulation for vehicles has to be enabled before the vehicle is crewed. Calling _vehicle enableDynamicSimulation true on a vehicle that already has a crew does not enable dynamic simulation for the vehicle (even if dynamic simulation for the crew is already enabled).

The following example illustrates how a crewed vehicle with working dynamic simulation is created:

private _vehicle = createVehicle ["B_APC_Wheeled_01_cannon_F", [0,0,0], [], 0, "NONE"]; _vehicle enableDynamicSimulation true; private _group = createGroup west; [_vehicle, _group] call BIS_fnc_spawnCrew; _group enableDynamicSimulation true;