local: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - "\| (\[\[[^ ]+\]\]) \}\}" to "|seealso= $1 }}") |
||
Line 55: | Line 55: | ||
[[private]] _myVariable = 42;</code> | [[private]] _myVariable = 42;</code> | ||
| [[Arma 3: Event Handlers#Local|"Local" Event Handler]], [[owner]], [[setOwner]] | |seealso= [[Arma 3: Event Handlers#Local|"Local" Event Handler]], [[owner]], [[setOwner]] | ||
}} | }} | ||
Revision as of 03:11, 13 June 2021
Description
- Description:
- Description needed
- Multiplayer:
- A few things to note amongst others:
- A game logic / module is always local to the server
- Terrain objects are local to every machine
- Groups:
- Multiplayer
Syntax
Alternative Syntax
- Syntax:
- local variable = value From Arma 2 until Arma 3 v1.54 - see private for later versions
- Return Value:
- Nothing
Examples
- Example 1:
if (not local _unit) then { hint format ["%1 is remote", name _unit]; };
- Example 2:
_isLocalGroup = local group _unit;
- Example 3:
- Sets variable's scope:
// From Arma 2 until Arma 3 v1.54 local _myVariable = 42; // Since Arma 3 v1.54 private _myVariable = 42;
Additional Information
- See also:
- "Local" Event HandlerownersetOwner
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