isServer: Difference between revisions
Jump to navigation
Jump to search
SilentSpike (talk | contribs) (Removed note that randomly appeared) |
Killzone Kid (talk | contribs) (format, see also) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''isServer''' |= Syntax | ||
|p1= |= Parameter 1 | |p1= |= Parameter 1 | ||
Line 17: | Line 17: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>if (!isServer) [[exitWith]] {}</code>|= Example 1 | |x1= <code>[[if]] (![[isServer]]) [[exitWith]] {};</code>|= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[isDedicated]] |= SEEALSO | | [[isDedicated]], [[isMultiplayer]], [[hasInterface]], [[loacal]]|= SEEALSO | ||
}} | }} |
Revision as of 19:44, 28 November 2014
Description
- Description:
- Returns true if the machine (executing the command) is the server in a multiplayer game or is running single player.
- Groups:
- Uncategorised
Syntax
- Syntax:
- isServer
- Return Value:
- Boolean
Examples
Additional Information
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 April 8, 2011
- Igneous01
- You can use isServer inside the condition of a trigger to have the trigger activate only for the server. All other conditions for the trigger will be checked across all machines, but it will only activate the trigger created on the server. For example:
this && isServer