Daviyow Posted February 11, 2015 Posted February 11, 2015 Hey guys how do i let the client know im interacting a object? because myPlayer().isInteracting is only for NPCS i guess?
Mysteryy Posted February 11, 2015 Posted February 11, 2015 What? Maybe your looking for player#isAnimating ??
Khaleesi Posted February 11, 2015 Posted February 11, 2015 I thikbn hes looking for when a player is interacting with a object. Like chopping a tree, if it's possible to get the gameobject by doing myplayer.getinteracting() Right?
Daviyow Posted February 11, 2015 Author Posted February 11, 2015 (edited) I thikbn hes looking for when a player is interacting with a object. Like chopping a tree, if it's possible to get the gameobject by doing myplayer.getinteracting() Right? Yes exactly this ^ cus lets say when you're smithing and you smith, it animates stops for 2 seconds and it animates again. this wont work well with isAnimating, cus it would switch each 2 seconds or so.. I want to know how i can use if(myPlayer().isInteracting()) with an object because its only NPC wise at the moment Edited February 11, 2015 by Daviyow
Botre Posted February 11, 2015 Posted February 11, 2015 Check animations, check your inventory / interfaces / messages. The method you're asking for doesn't exist in OSB and I'm not even sure if it's implementable / exists in the OSRS engine. Would be cool though. 1
Joseph Posted February 11, 2015 Posted February 11, 2015 I believe we discussed this already on another thread. What I do I use a timer. Everytime I'm animating I reset timer. Then I also check to see if it's been more than three Seconds. Before interacting with the object.
Extreme Scripts Posted February 11, 2015 Posted February 11, 2015 I believe your looking for: Character object = myPlayer.getInteracting(); if(object instanceOf RS2Object){ //lets rape some trees } Hope I understood this correctly :p
Botre Posted February 12, 2015 Posted February 12, 2015 I believe your looking for: Character object = myPlayer.getInteracting(); if(object instanceOf RS2Object){ //lets rape some trees } Hope I understood this correctly 1