Tile - YGameSession - Get Players – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{Navbox\/Ylands\}\}" to "{{Navbox/Ylands}}")
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Stub}}
<!---
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Get Players(Online only) ==
 
[[File:YlandsTile-860.png]]
 
<pre>static getPlayers(onlineOnly: boolean): YCharacter[];</pre>
=== Parameters ===
 
==== onlineOnly ====
 
=== Returns ===
 
'''YCharacter[]'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]
 
=== Description ===
 
Returns a list of '''players''' connected to a multiplayer '''session'''.
 
=== Notes ===
 
* '''Online only''' filters the list to only the players who are online at the time of the instruction call.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 1.4]]

Latest revision as of 14:26, 24 November 2023

Get Players(Online only)

YlandsTile-860.png

static getPlayers(onlineOnly: boolean): YCharacter[];

Parameters

onlineOnly

Returns

YCharacter[]

Availability

Server, Not in Edu

Description

Returns a list of players connected to a multiplayer session.

Notes

  • Online only filters the list to only the players who are online at the time of the instruction call.