AP_Reference
Automatically placed at the root level on items in an object pool. Alternately, may be placed by hand ahead of time, allowing the use of the delay variable, and slightly quicker execution during runtime.
Public Variables
delay : float
When this unit despawns, there will be a delay before it returns to the pool. This can be useful to give other scripts time to adjust in case the item were to immediately respawn.
Hidden Variables
poolScript : AP_Pool
The pool that this item belongs to.
timeSpawned : float
When this item was spawned.
Automatically placed at the root level on items in an object pool. Alternately, may be placed by hand ahead of time, allowing the use of the delay variable, and slightly quicker execution during runtime.
Public Variables
delay : float
When this unit despawns, there will be a delay before it returns to the pool. This can be useful to give other scripts time to adjust in case the item were to immediately respawn.
Hidden Variables
poolScript : AP_Pool
The pool that this item belongs to.
timeSpawned : float
When this item was spawned.