Tile - YChargeable - Charge – Ylands

From Bohemia Interactive Community
Revision as of 08:52, 8 July 2021 by YlandsClassyBot (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Charge(Entity, Amount)

YlandsTile-133.png

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

Parameters

target

amount

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.