readResourceAmount
readResourceAmount(
entity,handle):number
What entity has of the resource now, as a number: 0 where it has
none. A read of one entity’s own trait, so it takes no world; a view
reads it with useResource.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
handle |
ResourceHandle |
Returns
Section titled “Returns”number