|
Ground of Aces Scripting API
|
This class is available under a global resources variable.
More...
Public Member Functions | |
| bool | SpawnNextTo (uint voxelBasedObjectId, ResourceType type, int amount) |
| Spawn a resource pile next to a voxel based entity. This will use the nearest available voxel. | |
| bool | SpoilPile (ResourceType type) |
| Find a random pile of type and set its integrity to 0. | |
This class is available under a global resources variable.
|
inline |
Spawn a resource pile next to a voxel based entity. This will use the nearest available voxel.
| voxelBasedObjectId | ID of the object that marks the position |
| type | Type of the resource to spawn |
| amount | Amount of the resource to spawn - this will be clamped to the pile capacity |
true if successful, false if spawning failed (eg. entity with ID not found, no available space)
|
inline |
Find a random pile of type and set its integrity to 0.
| type | Resource type of the pile |
true if successful, false if no pile of type exists