local

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

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.

Syntax

Syntax:
Boolean = local Unit
Return Value:
Boolean

Examples

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

Additional Information

Multiplayer:
Behaviour unknown.
Problems:
In MP remote objects are not initialised in functions called by initline or init eventhandlers.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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

Personal tools
Buy ArmA now!