DoFSMArray

Does a single line action for the objects from the entity's array.

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

DoFSMArray "Object:<obj> <action> -- Sets Object:<obj> as the target for all of the objects from the array, and handles the action for them.

DoFSMArray "none <action> -- Target does not change, and handles the action for objects from the array.

Warning

Does NOT work with Block begin and Block end.

Example

// Example code
xpt_fate
{
    actions
    {
        // Player is dead, so we will too.
        IfAttr "player.ea_health <= 0"
            DoFSMArray "none SetAttr ea_health 0"
            SetAttr "ea_health 0"
            Return 1
        Block end

        // Not dead? Then follow the player
        DoFSMArray "Object:player Follow true"
        Follow true
    }
}