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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
cost? |
ResourceCost |
Returns
Section titled “Returns”ResourceHandle | undefined