local: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
[[Category:Scripting Commands ArmA|L]] | [[Category:Scripting Commands ArmA|L]] | ||
<h2 style="color:#000066"> '''local ''obj'''''</h2> | <h2 style="color:#000066"> '''local ''obj'''''</h2> |
Revision as of 12:35, 23 April 2006
local obj
Operand types:
obj: Object
Type of returned value:
Description:
MP: Check if given unit is local on the computer.
This can be used when some activation fields or scripts need to be performed only on one computer.
In SP all objects are local.
Note: All static objects are local everywhere.
Example:
local unitName
Comments:
In multiplayer, a game logic will always be local to the host computer.
This works on both dedicated and player-hosted servers.