connectToServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 9: | Line 9: | ||
{{Feature | Informative | | {{Feature | Informative | | ||
* only works on the [[Arma 3 Main Menu|Main Menu]]. | * only works on the [[Arma 3 Main Menu|Main Menu]]. | ||
* must be executed from [[isUIContext | UI context]], such as ''onButtonDown'' or similar events (see [[User Interface Event Handlers]]).}} | * must be executed from [[isUIContext | UI context]], such as ''onButtonDown'' or similar events (see [[User Interface Event Handlers]]). | ||
}} | |||
|s1= [[connectToServer]] [ip, port, password] | |s1= [[connectToServer]] [ip, port, password] | ||
Line 18: | Line 19: | ||
|p3= password: [[String]] - "" if no password | |p3= password: [[String]] - "" if no password | ||
|r1= | |||
|x1= <code>[[connectToServer]] ["192.168.0.2", 2302, "test"];</code> | |x1= <code>[[connectToServer]] ["192.168.0.2", 2302, "test"];</code> |
Revision as of 13:39, 13 June 2021
Description
- Description:
- Connects the client to the provided server.
- Groups:
- System
Syntax
- Syntax:
- connectToServer [ip, port, password]
- Parameters:
- ip: String
- port: Number
- password: String - "" if no password
- Return Value:
- Return value needed
Examples
- Example 1:
connectToServer ["192.168.0.2", 2302, "test"];
Additional Information
- See also:
- serverCommand getSteamFriendsServers
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