Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with animated objects

Featured Replies

Hi.

 

So I'm wondering how to check if an object is performing an animation or not. I'm working on a Dwarf-multicannon but I have no idea how to check if the cannon is rotating or needs to be fired.. For Character's you could just use character.isAnimating() but RS2Objects don't have that check.

 

f0b438ab2c70339a249aa761863706c2.png

 

Anyone have any ideas?

Hi.

 

So I'm wondering how to check if an object is performing an animation or not. I'm working on a Dwarf-multicannon but I have no idea how to check if the cannon is rotating or needs to be fired.. For Character's you could just use character.isAnimating() but RS2Objects don't have that check.

 

f0b438ab2c70339a249aa761863706c2.png

 

Anyone have any ideas?

try checking its height or its model

  • Author

try checking its height or its model

 

Do you mean that I should save the model id for when the cannon is not rotating, and then compare it with the rotating one..?

 

height shouldn't change lol

Do you mean that I should save the model id for when the cannon is not rotating, and then compare it with the rotating one..?

 

height shouldn't change lol

i'm not sure what actually changes in your situation, try checking if its height changes when its rotating and if its model id is different when rotating

  • Author

i'm not sure what actually changes in your situation, try checking if its height changes when its rotating and if its model id is different when rotating

 

Yeah gonna debug it and let you guys know, hold on

  • Author

i'm not sure what actually changes in your situation, try checking if its height changes when its rotating and if its model id is different when rotating

 

Ok I have no idea.

 

7d68ff4c6834f6c9d13582c2e9cf00b1.png

 

The "Entity Debug Info" is identical when the cannon is and isn't rotating..

Edited by swiffy

There should be a config value that changes when the cannon is firing. Try config debug

Additionally there will probably be a config storing how many cannonballs it has left

 

EDIT: I don't have the config for cannon state on hand; but remaining cannonballs should be

int cBalls = getConfigs().get(3);

From that you could make the assumption that cannon is not firing if cBalls is 0

Edited by FrostBug

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.