Tile - YUi - Show Warning – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added Show_Warning_Example image to show what the warning looks like in-game.)
No edit summary
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Show_warning.png]]
<!---
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Show Warning(Player, Text) ==


[[Image:Ylands_Tile_-_Show_Warning_Example.png]]
<pre>static showWarning(player: YCharacter, warning: any): void;</pre>
*Will '''show''' a '''warning''' text either to all '''players''' '''or''' a specific '''player'''.
=== Parameters ===
 
==== player ====
 
Target player
 
==== warning ====
 
Text to show
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Will '''show''' a '''warning''' text to a specific '''player'''.
 
== Show Warning(Text) ==
 
<pre>static showWarning(warning: any): void;</pre>
=== Parameters ===
 
==== warning ====
 
Text to show
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Will '''show''' a '''warning''' text to all '''players'''.




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


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Revision as of 16:31, 30 March 2022

Show Warning(Player, Text)

static showWarning(player: YCharacter, warning: any): void;

Parameters

player

Target player

warning

Text to show

Availability

Server

Description

Will show a warning text to a specific player.

Show Warning(Text)

static showWarning(warning: any): void;

Parameters

warning

Text to show

Availability

Server

Description

Will show a warning text to all players.