Thread Rating:
  • 4 Vote(s) - 4.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DEV] G2O Bot module
#18
I'm having a little problem with looping animations. Some of the monsters' animations are played in an endless loop. Let's take the die-animation for example. I need the enemy to just fall over once. But for some monsters (The wolf for example, pc_hero works fine I think) it will repeat the animation until I call endAnimation(). Of course I don't know exactly how long the animation is. For this example I assume I could use the animation where the enemy is already dead. Wouldn't look great, but at least it would work. But I have the same problem with the attack-animations of some monsters. The wolf for example works fine, he will only play the animation once, but the goblins on the other hand (And probably others as well) will just attack until I manually end the animation. In this case this is a pretty big deal unfortunately.

I know that at least the die-animations should be able to be played just once. I haven't tested it with GO just yet, but using the GMP this exact animation wouldn't loop when changing the instance of the player. I am getting the impressions that either I am doing something wrong, or it's something with the bot-module Smile

Long story short: Is there a way to play any animation just once or get the length of an animation to be able to end it with endAnimation?

And some obligatory code of how to reproduce this behaviour:


Code:
TestBot = createBot("TestBot");
TestBot.setInstance("WOLF");
TestBot.onDie = function(killerID)
{
   playAnimation("T_DEAD");
}
Reply


Messages In This Thread
[DEV] G2O Bot module - by Sative - 20.12.2015, 18:17
RE: [DEV] G2O Bot module - by Razir - 25.12.2015, 13:22
RE: [DEV] G2O Bot module - by Bimbol - 25.12.2015, 13:55
RE: [DEV] G2O Bot module - by Sative - 25.12.2015, 15:03
RE: [DEV] G2O Bot module - by Razir - 25.12.2015, 14:13
RE: [DEV] G2O Bot module - by Bimbol - 25.12.2015, 14:21
RE: [DEV] G2O Bot module - by Giosep - 26.12.2015, 12:50
RE: [DEV] G2O Bot module - by Sative - 26.12.2015, 13:14
RE: [DEV] G2O Bot module - by Buras - 27.12.2015, 11:14
RE: [DEV] G2O Bot module - by Sative - 30.12.2015, 14:25
RE: [DEV] G2O Bot module - by Buras - 30.12.2015, 14:45
RE: [DEV] G2O Bot module - by Sative - 02.01.2016, 15:35
RE: [DEV] G2O Bot module - by Razir - 02.01.2016, 17:31
RE: [DEV] G2O Bot module - by HammelGammel - 02.01.2016, 19:45
RE: [DEV] G2O Bot module - by Sative - 02.01.2016, 20:25
RE: [DEV] G2O Bot module - by HammelGammel - 02.01.2016, 21:35
RE: [DEV] G2O Bot module - by Sative - 02.01.2016, 23:01
RE: [DEV] G2O Bot module - by HammelGammel - 05.01.2016, 20:33
RE: [DEV] G2O Bot module - by Sative - 05.01.2016, 23:59
RE: [DEV] G2O Bot module - by HammelGammel - 06.01.2016, 00:28
RE: [DEV] G2O Bot module - by Sative - 06.01.2016, 12:19
RE: [DEV] G2O Bot module - by Galin - 06.01.2016, 13:34
RE: [DEV] G2O Bot module - by Quarchodron - 06.01.2016, 13:58
RE: [DEV] G2O Bot module - by Sative - 06.01.2016, 14:24
RE: [DEV] G2O Bot module - by Bimbol - 06.01.2016, 14:29
RE: [DEV] G2O Bot module - by Galin - 06.01.2016, 18:08
RE: [DEV] G2O Bot module - by HammelGammel - 09.01.2016, 21:05
RE: [DEV] G2O Bot module - by Seq - 10.01.2016, 02:05
RE: [DEV] G2O Bot module - by Bimbol - 10.01.2016, 02:58
RE: [DEV] G2O Bot module - by Sative - 10.01.2016, 02:36
RE: [DEV] G2O Bot module - by Galin - 12.01.2016, 22:20
RE: [DEV] G2O Bot module - by HammelGammel - 14.01.2016, 21:04
RE: [DEV] G2O Bot module - by WiteXDan - 31.01.2016, 11:52
RE: [DEV] G2O Bot module - by Bimbol - 31.01.2016, 12:00
RE: [DEV] G2O Bot module - by HammelGammel - 20.02.2016, 18:56
RE: [DEV] G2O Bot module - by Sative - 20.02.2016, 21:01
RE: [DEV] G2O Bot module - by HammelGammel - 20.02.2016, 21:20
RE: [DEV] G2O Bot module - by Zmorra - 27.02.2016, 19:28
RE: [DEV] G2O Bot module - by Sative - 01.03.2016, 12:57
RE: [DEV] G2O Bot module - by KimiorV - 08.05.2016, 00:37
RE: [DEV] G2O Bot module - by Ignisio - 08.05.2016, 02:00
RE: [DEV] G2O Bot module - by Sative - 25.05.2016, 18:35
RE: [DEV] G2O Bot module - by HammelGammel - 25.05.2016, 20:28
RE: [DEV] G2O Bot module - by Sative - 25.05.2016, 20:35
RE: [DEV] G2O Bot module - by HammelGammel - 12.11.2016, 00:58
RE: [DEV] G2O Bot module - by Mattwell - 15.11.2016, 19:28
RE: [DEV] G2O Bot module - by Bimbol - 15.11.2016, 19:35
RE: [DEV] G2O Bot module - by Mattwell - 18.11.2016, 21:49
RE: [DEV] G2O Bot module - by Osmith - 19.11.2016, 14:56
RE: [DEV] G2O Bot module - by Zmorra - 19.11.2016, 15:32
RE: [DEV] G2O Bot module - by Mattwell - 19.11.2016, 21:43
RE: [DEV] G2O Bot module - by blint - 19.11.2016, 21:53
RE: [DEV] G2O Bot module - by Bimbol - 19.11.2016, 22:56
RE: [DEV] G2O Bot module - by Mattwell - 20.11.2016, 00:05
RE: [DEV] G2O Bot module - by HammelGammel - 20.11.2016, 10:46
RE: [DEV] G2O Bot module - by Bimbol - 20.11.2016, 02:00
RE: [DEV] G2O Bot module - by Nubzior - 20.11.2016, 21:18
RE: [DEV] G2O Bot module - by Mattwell - 20.11.2016, 23:19
RE: [DEV] G2O Bot module - by Nubzior - 20.11.2016, 23:24
RE: [DEV] G2O Bot module - by Mattwell - 20.11.2016, 23:37
RE: [DEV] G2O Bot module - by Nubzior - 20.11.2016, 23:47
RE: [DEV] G2O Bot module - by HammelGammel - 25.11.2016, 16:15
RE: [DEV] G2O Bot module - by Nubzior - 25.11.2016, 19:26
RE: [DEV] G2O Bot module - by HammelGammel - 25.11.2016, 20:13

Possibly Related Threads…
Thread Author Replies Views Last Post
  [New G2O][Client-Side] GUI Patrix 1 3,345 02.01.2021, 05:22
Last Post: Patrix
  [G2O] SpeedBlock Marbar 16 11,089 13.10.2020, 15:32
Last Post: Sative
  [New G2O][Client-Side] LocalStorage Patrix 0 2,429 08.05.2020, 16:38
Last Post: Patrix
  [New G2O] Module example Patrix 4 7,695 17.05.2019, 01:30
Last Post: Patrix
  [New G2O][Client-Side] Music Module Nubzior 3 5,921 24.05.2018, 08:07
Last Post: Nubzior
  G2O - Client Side Bots(0.0.4) KimiorV 16 17,036 16.01.2017, 10:47
Last Post: KimiorV
  G2O Client side bots KimiorV 4 5,912 09.06.2016, 20:11
Last Post: KimiorV

Forum Jump:


Users browsing this thread: 2 Guest(s)