NONAME01150
New member
Is there some way to check if said button (ex:attack3) is not being held instead of checking if said button was released?
void main()
{
void entity = getlocalvar("self");
int Anim = getentityproperty(entity, "animationID");
int PlayerIndex = getentityproperty(entity, "playerindex");
int NotKeyHold = !getplayerproperty(PlayerIndex, "keys");
if(anim == openborconstant("ANI_FREESPECIAL5"))
{
if(NotKeyHold & openborconstant("FLAG_ATTACK3"))
{
performattack(entity, openborconstant("ANI_FREESPECIAL6"), 0);
}
}
}
@script
void self = getlocalvar("self");
void target = getlocalvar("Target" + self);
int PlayerIndex = getentityproperty(target, "playerindex");
int keyhold = getplayerproperty(PlayerIndex, "keys");
if(frame>26){
if(target!=NULL() & keyhold){
changeentityproperty(self, "animation", openborconstant("ANI_Follow9"));
}
}
@end_script
void target = getlocalvar("Target" + self);
void target = getentityproperty(self, "opponent");
if(frame>26){
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
if(target){
int PIndex = getentityproperty(target, "playerindex");
int KeyHold = getplayerproperty(PIndex, "keys");
if(KeyHold!=0){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW9"));
}
}
}
Any other ideas on how to identify player button pushes that don't use the Target or Opponent property?
@script
void self = getlocalvar("self");
void target = getlocalvar("Target" + self);
int PlayerIndex = getentityproperty(target, "playerindex");
int keyhold = getplayerproperty(PlayerIndex, "keys");
if(frame>26){
if(target!=NULL() && keyhold & openborconstant("FLAG_ATTACK2")){
changeentityproperty(self, "animation", openborconstant("ANI_Follow9"));
}
}
@end_script
@script
void self = getlocalvar("self");
void target = getlocalvar("Target" + self);
int PlayerIndex = getentityproperty(target, "playerindex");
int keyhold = getplayerproperty(PlayerIndex, "keys");
if(frame>26){
if(target!=NULL() && keyhold & openborconstant("FLAG_MOVEUP")){
changeentityproperty(self, "animation", openborconstant("ANI_Follow9"));
}
}
@end_script