Tile - YCustomControls - Set Default Key Action Enabled – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Ylands editor navbox}}" to "{{Navbox/Ylands}}")
No edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:{{PAGENAME}}.png]]
<!---
*Allows to '''enable''' / '''disable''' a Default Action for selected '''Player'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Allows to get whether a Default Action '''is enabled''' for selected '''Player'''.
-->
*'''Action ID''' is selected via the [[Ylands Tile - Default Action literal|'''Default Action''']] enum.
== Set Default Key Action Enabled(Player, Action, Enabled) ==


=Notes=
[[File:YlandsTile-854.png]]
*See also: [[Ylands Game logic - Custom controls|'''Custom Controls''']]
 
<pre>static enableDefaultKeyAction(player: YCharacter, action: YCharacterAction | YInputAction, active: boolean): void;</pre>
=== Parameters ===
 
==== player ====
 
==== action ====
 
==== active ====
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Allows to '''enable'''/'''disable''' the '''default key action''' for the target '''player'''.
 
== Set Default Key Action Enabled(Custom controls, Player, Action, Enabled) ==
 
[[File:YlandsTile-863.png]]
 
<pre>enableDefaultKeyAction(player: YCharacter, action: YCharacterAction | YInputAction, active: boolean): void;</pre>
=== Parameters ===
 
==== player ====
 
==== action ====
 
==== active ====
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Allows to '''enable'''/'''disable''' the '''default key action''' of the target '''Custom controls''' for the target '''player'''.




Line 13: Line 50:


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 1.3]]

Revision as of 12:15, 12 November 2021

Set Default Key Action Enabled(Player, Action, Enabled)

YlandsTile-854.png

static enableDefaultKeyAction(player: YCharacter, action: YCharacterAction | YInputAction, active: boolean): void;

Parameters

player

action

active

Availability

Server

Description

Allows to enable/disable the default key action for the target player.

Set Default Key Action Enabled(Custom controls, Player, Action, Enabled)

YlandsTile-863.png

enableDefaultKeyAction(player: YCharacter, action: YCharacterAction | YInputAction, active: boolean): void;

Parameters

player

action

active

Availability

Server

Description

Allows to enable/disable the default key action of the target Custom controls for the target player.