Tile - YChargeable - Charge – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Charge(Entity, Amount) == File:YlandsTile-13...")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


==== target ====
==== target ====
Target entity


==== amount ====
==== amount ====
Amount of charge
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 27: Line 35:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

Charge(Entity, Amount)

YlandsTile-133.png

static charge(target: YEntity, amount: number): void;

Parameters

target

Target entity

amount

Amount of charge

Availability

Server

Description

Allows to increase charge of target entity.

Notes

  • Works for "chargeable" items (e.g Mining drill).
  • Works also for engines.
  • Power cells cannot be recharged from a script, only depleted.
  • Entering negative number as amount will inverse the instruction effect.