enableSimulationGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Some wiki formatting)
Line 12: Line 12:
|gr1= Object Manipulation
|gr1= Object Manipulation


|descr= MP command. Enable or disable simulation for given entity, globally. Call this only from the server. Has the same effect as [[enableSimulation]] when used in SP.
|descr= Enable or disable simulation for given entity, globally. Has the same effect as [[enableSimulation]] when used in singleplayer.


{{Feature | Informative | Up to '''Arma 3 v2.04''', the command had to be executed [[Multiplayer_Scripting#Locality|server-side]], otherwise it would have no effect. Since '''Arma 3 v2.06''', the command's behavior is as follows:
|mp= {{Feature|informative|Since {{GVI|arma3|2.06}} the command can also be executed client-side, with a [[Multiplayer_Scripting#Locality|local]] argument.}}
'''Server-side execution''': Argument can be [[Multiplayer_Scripting#Locality|local]] or [[Multiplayer_Scripting#Locality|global]]
'''Client-side execution''': Argument must be [[Multiplayer_Scripting#Locality|local]]
}}


|s1= entity [[enableSimulationGlobal]] enable
|s1= entity [[enableSimulationGlobal]] enable
Line 41: Line 38:
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<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: <code>[[player]] [[reveal]] previouslySimDisabledUnit;</code>
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: <code>{[[player]] [[reveal]] _x} [[forEach]] [[allUnits]];</code>
 
</dd>
</dd>


</dl>
</dl>

Revision as of 19:14, 17 July 2021

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:
enableSimulationsimulationEnabledenableDynamicSimulationSystemdynamicSimulationSystemEnabledenableDynamicSimulationdynamicSimulationEnabledsetDynamicSimulationDistancedynamicSimulationDistancesetDynamicSimulationDistanceCoefdynamicSimulationDistanceCoeftriggerDynamicSimulationcanTriggerDynamicSimulation

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