Hi guys - for whatever reason I cant get the following com to work
I'm trying to make it where if the player presses attack 1 and 2 (at the same time) and presses down ( at the same time)
he performs freespecial54.
Now if the above is not possible for whatever reason I can always opt to edit the .c key file - but I'm unsure of how to properly code it -
so if I could get your help with that also.
Than...
I'm getting a few errors here and there , but I know it's possible - I just keep hitting a wall here.
Code:
com a + a2 D freespecial54
he performs freespecial54.
Now if the above is not possible for whatever reason I can always opt to edit the .c key file - but I'm unsure of how to properly code it -
so if I could get your help with that also.
Code:
void main()
{
int plIndex = getlocalvar("player");
void vEnt = getplayerproperty(plIndex, "entity");
void vAniID = getentityproperty(vEnt,"animationID"); //Get current animation ID
int animpos = getentityproperty(vEnt,"animpos");
int attack = playerkeys(plIndex, 1, "attack");
int attackH = playerkeys(plIndex, 0, "attack");
int attack2 = playerkeys(plIndex, 1, "attack2");
int attack2H = playerkeys(plIndex, 0, "attack2");
int attack3 = playerkeys(plIndex, 1, "attack3");
int attack3H = playerkeys(plIndex, 0, "attack3");
int special = playerkeys(plIndex, 1, "special");
int specialH = playerkeys(plIndex, 0, "special");
int jump = playerkeys(plIndex, 0, "jump");
int jumpH = playerkeys(plIndex, 1, "jump");
int right = playerkeys(plIndex, 1, "moveright");
int rightH = playerkeys(plIndex, 0, "moveright");
int left = playerkeys(plIndex, 1, "moveleft");
int leftH = playerkeys(plIndex, 0, "moveleft");
int down = playerkeys(plIndex, 0, "movedown");
Than...
Code:
if(((attack) || (attack2)) && ((down ))){
if (vAniID == openborconstant("ANI_WALK")){ //In valid animations?
changeentityproperty(vEnt, "velocity", 0, 0, 0);
performattack(vEnt, openborconstant("ANI_freespecial54"));
}
}
I'm getting a few errors here and there , but I know it's possible - I just keep hitting a wall here.