EntityEffect

Sets, adds, or removes an entity's entity effect.

Postal III Ultrapatch+Angel v1.3.0+ Feature

The following function will only work in Postal III Ultrapatch+Angel v1.3.0 or higher.


// from CR's AI_CR_init.p3s
Const EF_NOSHADOW,0
Const EF_NODRAW,1
Const EF_NORECEIVESHADOW,2
Const EF_ITEM_BLINK,3

Syntax

EntityEffect [0 to 3],add -- Adds the effect to this entity.

EntityEffect [0 to 3],remove -- Removes the effect to this entity.

EntityEffect 0,clear -- Clears all effects from this entity.

Example


// This will make the NPC invisible, and then visible again while looping..
pt_spooky
{
    actions
    {
        EntityEffect EF_NODRAW,add
        EntityEffect EF_NOSHADOW,add
        Wait 3
        EntityEffect EF_NODRAW,remove
        EntityEffect EF_NOSHADOW,remove
        Wait 3
        Repeat 0
    }
}