enableSimulationGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 13: Line 12:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| 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. |DESCRIPTION=
| 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. |DESCRIPTION=
____________________________________________________________________________________________


| entity [[enableSimulationGlobal]] enable |SYNTAX=
| entity [[enableSimulationGlobal]] enable |SYNTAX=
Line 30: Line 27:


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


| [[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]] |SEEALSO=

Revision as of 01:14, 17 January 2021

Hover & click on the images for description

Description

Description:
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.
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

Notes

Bottom Section

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 _x} forEach allUnits;