IfHasItem
Conditional function which checks if object has an inventory item stored.
Postal III Ultrapatch+Angel v1.3.0+ Feature
The following function will only work in Postal III Ultrapatch+Angel v1.3.0 or higher.
Syntax
IfHasItem "Object:<obj> <itemid> <action> -- Checks if Object:<obj> has <itemid> stored in their inventory.
Example
// Example code
xpt_checkVarious
{
actions
{
IfHasItem "Object:self ITM_BONE Pattern pt_chomp"
IfHasItem "Object:player ITM_PIZZA Block begin"
Pattern pt_givemeallyourfoodsucker
Block end
}
}