Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
onAnimation
#7
Squirrel Script
  1. function onAnimation(aniId)
  2. {
  3. local ani = getAnimationName();
  4. if (ani == "SOME_ANI")
  5. {
  6. print("HIT");
  7. }
  8. }


or better
Squirrel Script
  1. function onAnimation(aniId)
  2. {
  3. if (aniId == 68)
  4. {
  5. print("HIT");
  6. }
  7. }



Please use [code].
Reply


Messages In This Thread
onAnimation - by imperior5 - 07.10.2016, 09:08
RE: onAnimation - by Bimbol - 07.10.2016, 12:18
RE: onAnimation - by imperior5 - 07.10.2016, 14:13
RE: onAnimation - by HammelGammel - 07.10.2016, 14:35
RE: onAnimation - by Bimbol - 07.10.2016, 15:26
RE: onAnimation - by imperior5 - 07.10.2016, 16:11
RE: onAnimation - by Bimbol - 07.10.2016, 17:02
RE: onAnimation - by imperior5 - 07.10.2016, 17:46
RE: onAnimation - by Son Goku - 07.10.2016, 17:52

Forum Jump:


Users browsing this thread: 2 Guest(s)