Tile - YEngine - Fuel Engine – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==== target ==== | ==== target ==== | ||
Target entity | |||
==== amount ==== | ==== amount ==== | ||
Amount of fuel | |||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === |
Revision as of 11:16, 12 November 2021
Fuel Engine(Entity, Amount)
static fuel(target: YEntity, amount: number): void;
Parameters
target
Target entity
amount
Amount of fuel
Availability
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.