enableSimulationGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
 
(3 intermediate revisions by the same user not shown)
Line 26: Line 26:
|x1= <sqf>_myObject enableSimulationGlobal false;</sqf>
|x1= <sqf>_myObject enableSimulationGlobal false;</sqf>


|x2= <code>[_object, false] [[remoteExec]] ["enableSimulationGlobal", 2];</code>
|x2= <sqf>[_object, false] remoteExec ["enableSimulationGlobal", 2];</sqf>


|seealso= [[enableSimulation]] [[simulationEnabled]] [[enableDynamicSimulationSystem]] [[dynamicSimulationSystemEnabled]] [[enableDynamicSimulation]] [[dynamicSimulationEnabled]] [[setDynamicSimulationDistance]] [[dynamicSimulationDistance]] [[setDynamicSimulationDistanceCoef]] [[dynamicSimulationDistanceCoef]] [[triggerDynamicSimulation]] [[canTriggerDynamicSimulation]]
|seealso= [[enableSimulation]] [[simulationEnabled]] [[enableDynamicSimulationSystem]] [[dynamicSimulationSystemEnabled]] [[enableDynamicSimulation]] [[dynamicSimulationEnabled]] [[setDynamicSimulationDistance]] [[dynamicSimulationDistance]] [[setDynamicSimulationDistanceCoef]] [[dynamicSimulationDistanceCoef]] [[triggerDynamicSimulation]] [[canTriggerDynamicSimulation]]
}}
}}


 
{{Note
<dl class="command_description">
|user= Killzone_Kid
 
|timestamp= 20141021153300
<dt></dt>
|text= Units that have been previously subjected to <sqf inline>enableSimulation false</sqf> or <sqf inline>enableSimulationGlobal false</sqf> may stay unrecognised for a long time even after simulation was re-enabled, returning [[objNull]] as [[cursorTarget]]. Force revealing units with [[reveal]] command usually solves the problem. For example:
<dd class="notedate">Posted on October 21, 2014 - 15:33 (UTC)</dd>
<sqf>player reveal previouslySimDisabledUnit;</sqf>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
}}
<dd class="note">
Units that have been previously subjected to {{ic|[[enableSimulation]] [[false]]}} or {{ic|[[enableSimulationGlobal]] [[false]]}} may stay unrecognised for a long time even after simulation was re-enabled, returning [[objNull]] as [[cursorTarget]]. Force revealing units with [[reveal]] command usually solves the problem. For example:
<code>player [[reveal]] previouslySimDisabledUnit;</code>
</dd>
 
</dl>

Latest revision as of 18:01, 25 July 2022

Hover & click on the images for description

Description

Description:
Enable or disable simulation for given entity, globally. Has the same effect as enableSimulation when used in singleplayer.
Multiplayer:
Since Arma 3 logo black.png2.06 the command can also be executed client-side, with a local argument.
Groups:
Object Manipulation

Syntax

Syntax:
entity enableSimulationGlobal enable
Parameters:
entity: Object
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
_myObject enableSimulationGlobal false;
Example 2:
[_object, false] remoteExec ["enableSimulationGlobal", 2];

Additional Information

See also:
enableSimulation simulationEnabled enableDynamicSimulationSystem dynamicSimulationSystemEnabled enableDynamicSimulation dynamicSimulationEnabled setDynamicSimulationDistance dynamicSimulationDistance setDynamicSimulationDistanceCoef dynamicSimulationDistanceCoef triggerDynamicSimulation canTriggerDynamicSimulation

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
Killzone_Kid - c
Posted on Oct 21, 2014 - 15:33 (UTC)
Units that have been previously subjected to enableSimulation false or enableSimulationGlobal false may stay unrecognised for a long time even after simulation was re-enabled, returning objNull as cursorTarget. Force revealing units with reveal command usually solves the problem. For example:
player reveal previouslySimDisabledUnit;