freeze/stun

Gurtag

Active member
hey guys is there a way or script to make an attackbox freeze/stun enemies but they go to pain when hit instead of been knocked down by default?
 
You could declare this damagescript in enemies text for that:
hitF.c
C:
void main()
{//
    void self = getlocalvar("self"); //Get calling entity.
    int StuTime = getentityproperty(self, "freezetime");

    if(StuTime > 0){
      changeentityproperty(self, "nodrop", 1);
    } else {
      changeentityproperty(self, "nodrop", 0);
    }
}

Declare it with this line:
takedamagescript data/scripts/hitF.c
 
@Gurtag a more simple method would be instead of a attackbox use freeze burn or any numbered attack box with a corresponding pain animation of the entity stunned.

But if you want them to freeze like sub-zero hitting a ice attack then bloodbanes method is better.
 
@Gurtag a more simple method would be instead of a attackbox use freeze burn or any numbered attack box with a corresponding pain animation of the entity stunned.

But if you want them to freeze like sub-zero hitting a ice attack then bloodbanes method is better.
no i was asking that in order to not have yet another pain anim i allready have a lot ;p but i see your point thanks for the help malik
 
Back
Top Bottom