4rpl:commands:func_warepacketsent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:func_warepacketsent [2021/02/06 20:18] – Regallion | 4rpl:commands:func_warepacketsent [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
===== Description ===== | ===== Description ===== |
| |
":_WarePacketSet" is invoked whenever a custom unit sends a ware packet. Note that only wares are supported, not energy. | ":_WarePacketSent" is invoked whenever a custom unit sends a ware packet. Note that only wares are supported, not energy. |
| |
There is an implicit variable named "_DATA" that is available for use when the callback is made. For this callback, **_DATA** is a table that contains two keys, "unit" and "ware". The "unit" value holds the uid for the unit that the ware packet was sent to. The "ware" value holds the ware type that was dispatched. See Set [[AddAsWareHolder]] for a list of ware types. | There is an implicit variable named "_DATA" that is available for use when the callback is made. For this callback, **_DATA** is a table that contains two keys, "unit" and "ware". The "unit" value holds the uid for the unit that the ware packet was sent to. The "ware" value holds the ware type that was dispatched. See Set [[AddAsWareHolder]] for a list of ware types. |
4rpl/commands/func_warepacketsent.1612642707.txt.gz · Last modified: 2025/02/14 14:56 (external edit)