Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

checkCost

checkCost(entity, cost?): ResourceHandle | undefined

Checks that entity can pay cost: the first resource in it that it has too little of to spend, and undefined where it can pay it all. One it lacks is short. As Unreal’s ability system names its CheckCost.

Parameter Type
entity Entity
cost? ResourceCost

ResourceHandle | undefined