Tile - YGameSession - Get Players – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with " ---- {{Ylands scripting navbox}} {{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} Category: Instructions Category: Ylands 1.4")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!---
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.




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


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

Latest revision as of 15: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.