Ignore

Unused Postal3Script Object

Checks if an object is ignored.

Note

Can only be used with IgnoreTarget beforehand.

Bug

Using against corpses doesn't work, even though IgnoreTarget has proper coding for it.

Syntax

Ignore:[object type] -- Checks if the type is already ignored or not

Example


st_somestate
{
    group Neutral
    patterns 
    {
        pt_default
        {
            actions
            {
                // Target was already being ignored!
                IfAttr "Ignore:target == 1 Block begin"
                    ResetTarget 1
                    Pattern pt_end
                Block end

                // Not ignored!
                IfAttr "Ignore:target == 0 Block begin"
                    IgnoreTarget 20
                    ResetTarget 1
                    Pattern pt_ignored
                Block end
            }
        }
    }
}