×
Меню
Индекс

MSFD Checking for presence of items in inventory

GetItemCount, "ObjectID"     (returns short)
 
Short objectcount
Set objectcount to ( "Mob_ID"->GetItemCount, "Object_ID" )
 
If ( GetItemCount, "Object_ID" >= 1 )
 
This function checks the inventory of the calling object and returns the number of objects of type "Object_ID" it owns.