Tile - YChargeable - Charge – Ylands

From Bohemia Interactive Community
Revision as of 15:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(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

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.