Tile - YChargeable - Set Current Charge – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Image:Ylands_Tile_-_Entity_charge.png]] | |||
*Allows to get/set '''current''' total amount of charge of an entity | |||
[[Image:Ylands_Tile_-_Entity_charge_add.png]] | |||
*Allows to '''increase''' charge of target entity | |||
[[Image:Ylands_Tile_-_Entity_charge_remove.png]] | |||
*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 | |||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} |
Revision as of 12:18, 5 December 2018
- Allows to get/set current total amount of charge of an entity
- Allows to increase charge of target entity
- 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