Push

Makes an NPC perform a shove/push melee attack.

Note

Victim and attacker cannot be the same.

Syntax

Push self,target,easy -- Plays flinching animations, but no damage

Push self,target,medium -- Deals slight damage to target

Push self,target,hard -- Deals heavy damage to target

Example


// From ai_citizen.p3s
// Plays animation and deals damage at the same time
pt_bump
{
    actions
    {
        TargetCaller 1
        TargetToMem msTARGET
        IfAttr "ea_Manner == Manner:RedNeck and slot#msTARGET.ea_Manner == StreetBro Block begin"
            Face true
            Sequence seq.melee_push
            Push self,target,medium
        Block end
        IfAttr "ea_Manner == Manner:StreetBro and slot#msTARGET.ea_Manner == StreetBro Block begin"
            Face true
            Sequence seq.melee_push
            Push self,target,medium
        Block end
        IfAttr "ea_Manner == Manner:CuteGirl and slot#msTARGET.ea_Manner == StreetBro Block begin"
            Face true
            Sequence seq.melee_push
            Push self,target,medium
        Block end
        State st_start
    }
}