text cancel script help

Gurtag

Member
hey guys, surfing the help forum came across this script by bloodbane to cancel text entity in to desired anim, tryed to mod it so it works with specific button imput in this case A4 but despite my brillants attempts had no succes so far, could you help me out?

here the code..

Code:
anim    follow1 # Page 1
@script
  if(frame >= 2){
    int KeyHold = getplayerproperty(0, "keys"); // acquires player 1's key hold

    if(KeyHold != 0){
      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW2"));
    }
  }
@end_script
 
Back
Top Bottom