PrintAttr

Prints out the value of an attribute to the console. For debugging purposes only.

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

PrintAttr [attr_name] -- Prints out this attribute's value to the console.

Note

For this function you need to have developer 1 enabled.

Example


// This will print out the health of the entity to the console.
pt_default
{
    actions
    {
        PrintAttr "ea_health"
    }
}

// PrintAttr can be used in many other ways aswell
pt_default
{
    actions
    {
        IfAttr "ea_health < 25 Block begin"
            PrintAttr "I have less than 25 health"
        Block end
    }
}