Functions Documentation |
|
Name |
objSetDeviceActivationDelay |
Syntax |
(objSetDeviceActivationDelay obj deviceItem [delay]) -> True/Nil |
Argument List |
obj: the spaceobject that has the item
deviceItem: the item that determines how much power to draw
[delay]: a delay in ticks before consumption |
Returns |
Boolean: True or nil depending upon success |
Category |
spaceobject, item
|
Description |
Used to draw power (as if firing a weapon). See comments here: http://wiki.neurohack.com/transcendence/trac/ticket/281
The delay is a one time period to wait before drawing power. The device can be any item, even a virtual item |
Example |
(objSetDeviceActivationDelay gPlayership (itmCreate 0x0000400D )) absorb 1MW on the playership |
Comment |
|