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 (Some wiki formatting)
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.12


|1.12|Game version=
|arg= global


|arg= global |Multiplayer Arguments=
|eff= global


|eff= global |Multiplayer Effects=
|serverExec= server


|serverExec= server |Exec=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|descr= Enable or disable simulation for given entity, globally. Has the same effect as [[enableSimulation]] when used in singleplayer.
____________________________________________________________________________________________


| 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= {{Feature|informative|Since {{GVI|arma3|2.06}} the command can also be executed client-side, with a [[Multiplayer_Scripting#Locality|local]] argument.}}
____________________________________________________________________________________________


| entity [[enableSimulationGlobal]] enable |SYNTAX=
|s1= entity [[enableSimulationGlobal]] enable


|p1= entity: [[Object]] |PARAMETER1=
|p1= entity: [[Object]]


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


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]


|x1= <sqf>_myObject enableSimulationGlobal false;</sqf>


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


|x2= <code>[_object, [[false]]] [[remoteExec]] ["enableSimulationGlobal", 2];</code>|EXAMPLE2=
|seealso= [[enableSimulation]] [[simulationEnabled]] [[enableDynamicSimulationSystem]] [[dynamicSimulationSystemEnabled]] [[enableDynamicSimulation]] [[dynamicSimulationEnabled]] [[setDynamicSimulationDistance]] [[dynamicSimulationDistance]] [[setDynamicSimulationDistanceCoef]] [[dynamicSimulationDistanceCoef]] [[triggerDynamicSimulation]] [[canTriggerDynamicSimulation]]
____________________________________________________________________________________________
}}
 
| [[enableSimulation]], [[simulationEnabled]], [[enableDynamicSimulationSystem]], [[dynamicSimulationSystemEnabled]], [[enableDynamicSimulation]], [[dynamicSimulationEnabled]], [[setDynamicSimulationDistance]], [[dynamicSimulationDistance]], [[setDynamicSimulationDistanceCoef]], [[dynamicSimulationDistanceCoef]], [[triggerDynamicSimulation]], [[canTriggerDynamicSimulation]] |SEEALSO=


| |MPBEHAVIOUR=
{{Note
|user= Killzone_Kid
|timestamp= 20141021153300
|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:
<sqf>player reveal previouslySimDisabledUnit;</sqf>
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 21, 2014 - 15:33 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<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>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

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;