local: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Boolean]] <nowiki>=</nowiki> '''local ''[[Object]]''''' |= Syntax
| [[Boolean]] <nowiki>=</nowiki> '''local ''[[Object#Unit|Unit]]''''' |= Syntax


| [[Boolean]] |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>?!'''local''' unitName : goto "multi"</code> |= Example 1
|x1= <code>?!'''local''' _unitName : goto "multi"</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 04:47, 28 August 2007

Hover & click on the images for description

Description

Description:
Check if given unit is local on the computer in Multiplayer games (see Locality in Multiplayer for general concepts). This can be used when some activation fields or scripts need to be performed only on one computer. In Singleplayer all objects are local. Note: All static objects are local everywhere.
Problems:
In MP remote objects are not initialised in functions called by initline or init eventhandlers.
Groups:
Uncategorised

Syntax

Syntax:
Boolean = local Unit
Return Value:
Boolean

Examples

Example 1:
?!local _unitName : goto "multi"

Additional Information

See also:
See also needed

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

Posted on August 4, 2006 - 10:56
hardrock
Notes from before the conversion: In multiplayer, a game logic will always be local to the host computer. This works on both dedicated and player-hosted servers.

Bottom Section