enableSimulationGlobal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "server|= Exec" to "server |Exec=")
Line 6: Line 6:
|1.12|Game version=
|1.12|Game version=


|arg= global |Multiplayer Effects=
|arg= global |Multiplayer Arguments=


|eff= global |Multiplayer Effects=
|eff= global |Multiplayer Effects=
Line 13: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= entity: [[Object]] |PARAMETER1=
|p1= entity: [[Object]] |PARAMETER1=
|p2=  enable: [[Boolean]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=  
|p2= enable: [[Boolean]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=


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


|x1= <code>_myObject [[enableSimulationGlobal]] false;</code>|EXAMPLE1=
|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=


| |MPBEHAVIOUR=  
| |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


Line 43: Line 43:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
Line 52: Line 51:
<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 [[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>
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>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 01:10, 22 December 2019

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

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;