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
 
Back
Top Bottom