Guys, in the case of a levelUP script, I would like to know if there is a possibility of
increase the damage of attack box when player level up.
I tryed this code:
CODE:
changeentityproperty(ent,"offense",openborconstant("ATK_NORMAL"),1.0);
What I am doing wrong?
data\scripts\levelup.c
void setAbi2(void plIndex, void ent, int delta)
{
changeentityproperty(ent,"maxhealth",getentityproperty(ent,"maxhealth")+10*delta);
changeentityproperty(ent,"health",getentityproperty(ent,"maxhealth"));
changeentityproperty(ent,"offense",openborconstant("ATK_NORMAL"),1.0);
//changeentityproperty(ent,"defense",openborconstant("ATK_NORMAL"),1.0);
}
increase the damage of attack box when player level up.
I tryed this code:
CODE:
changeentityproperty(ent,"offense",openborconstant("ATK_NORMAL"),1.0);
What I am doing wrong?
data\scripts\levelup.c
void setAbi2(void plIndex, void ent, int delta)
{
changeentityproperty(ent,"maxhealth",getentityproperty(ent,"maxhealth")+10*delta);
changeentityproperty(ent,"health",getentityproperty(ent,"maxhealth"));
changeentityproperty(ent,"offense",openborconstant("ATK_NORMAL"),1.0);
//changeentityproperty(ent,"defense",openborconstant("ATK_NORMAL"),1.0);
}