Tile - YEngine - Fuel Engine – Ylands

From Bohemia Interactive Community
Revision as of 15:26, 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

Fuel Engine(Entity, Amount)

YlandsTile-134.png

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

Parameters

target

Target entity

amount

Amount of fuel

Availability

Server

Description

Allows to add desired amount of fuel to selected entity.

Notes

  • Works only for engines.
  • To remove fuel from target, use negative amount.
  • Maximum engine fuel capacity is 1000.