local: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands]]
[[Category:Scripting Commands|L]]
[[Category:Scripting Commands OFP 1.97]]
[[Category:Scripting Commands OFP 1.97|L]]
[[Category:Scripting Commands OFP 1.46]]
[[Category:Scripting Commands OFP 1.46|L]]
[[Category:Scripting Commands ArmA]]
[[Category:Scripting Commands ArmA|L]]


back to [[Scripting_Reference#L|COMREF]]
back to [[Scripting_Reference#L|COMREF]]

Revision as of 18:21, 22 April 2006


back to COMREF

local obj


Operand types:

obj: Object

Type of returned value:

Boolean

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.