local
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
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
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
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.

