Tile - YChargeable - Set Current Charge – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (YlandsClassyBot moved page Ylands Tile - Charge entity to Ylands:Tile - YChargeable - Set Current Charge: New Structure)
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
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Set Current Charge(Entity, Value) ==


[[File:YlandsTile-1047.png]]


[[Image:Ylands_Tile_-_Entity_charge_add.png]]
<pre>static setCurrentCharge(target: YEntity, value: number): void;</pre>
*Allows to '''increase''' charge of target entity
=== Parameters ===


==== target ====


[[Image:Ylands_Tile_-_Entity_charge_remove.png]]
==== value ====
*Allows to '''decrease''' charge from target entity


=== Description ===


=Notes=
Allows to set current power charge of target entity.
*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




Line 23: Line 23:


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Revision as of 09:52, 8 July 2021