enableSimulationGlobal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 26: | Line 26: | ||
|x1= <sqf>_myObject enableSimulationGlobal false;</sqf> | |x1= <sqf>_myObject enableSimulationGlobal false;</sqf> | ||
|x2= <code>[_object, false] | |x2= <code>[_object, false] remoteExec ["enableSimulationGlobal", 2];</code> | ||
|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]] | ||
Line 39: | Line 39: | ||
<dd class="note"> | <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: | 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 | <code>player reveal previouslySimDisabledUnit;</code> | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 11:03, 12 May 2022
Description
- Description:
- Enable or disable simulation for given entity, globally. Has the same effect as enableSimulation when used in singleplayer.
- Multiplayer:
- Groups:
- Object Manipulation
Syntax
- Syntax:
- entity enableSimulationGlobal enable
- Parameters:
- entity: Object
- enable: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
- 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
- Posted on October 21, 2014 - 15:33 (UTC)
- Killzone Kid
-
Units that have been previously subjected to
enableSimulation false
orenableSimulationGlobal 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;