Why knockdowncount doesn't work by script?

StrikerX

Member
Hello! Just a curiosity, I was testing scripts on level, each one looks work well...

Code:
spawn Ryu_Evil
@script
void main()
	{
	void self = getlocalvar("self");
	performattack(self, openborconstant("ANI_JUMP"));
     tossentity(self, 0, 3, 0);
  changeentityproperty(self, "maxmp", 1);
  changeentityproperty(self, "antigrab", 1);
  changeentityproperty(self, "aimove", 1);
changeentityproperty(self, "nodrop", 1);
  changeentityproperty(self, "subject_to_wall", 0);
  changeentityproperty(self, "setlayer", -999);
  changeentityproperty(getlocalvar("self"), "type", openborconstant("TYPE_NPC"));
  changeentityproperty(self, "candamage", "TYPE_PLAYER", "TYPE_NPC");
  changeentityproperty(self, "hostile",   "TYPE_NPC");
	}
@end_script
alias Evil_Ryu_Master
coords  500 351
at	0

Everythink is amazing! I used the same logic to knockdowncount, but looks doesn't work:

Code:
spawn Ryu_Evil
@script
void main()
	{
	void self = getlocalvar("self");
  changeentityproperty(self, "knockdowncount", 0);
	}
@end_script
coords  500 351
map 5
alias Evil_Ryu_Novice
at	0

If some character is seted up as knockdowncount 1 on his header, I cant unactive it by script on stage?

All The best
 
Back
Top Bottom