Tile - YChargeable - Deplete – Ylands
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. --> == Deplete(Entity, Amount) == File:YlandsTile-1...") |
(No difference)
|
Revision as of 09:52, 8 July 2021
Deplete(Entity, Amount)
static deplete(target: YEntity, amount: number): void;
Parameters
target
amount
Description
Allows to decrease charge from 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.