Daviyow Posted February 11, 2015 Share 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? Link to comment Share on other sites More sharing options...
Mysteryy Posted February 11, 2015 Share Posted February 11, 2015 What? Maybe your looking for player#isAnimating ?? Link to comment Share on other sites More sharing options...
Khaleesi Posted February 11, 2015 Share 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? Link to comment Share on other sites More sharing options...
Daviyow Posted February 11, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Botre Posted February 11, 2015 Share 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 Link to comment Share on other sites More sharing options...
Joseph Posted February 11, 2015 Share 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. Link to comment Share on other sites More sharing options...
Extreme Scripts Posted February 11, 2015 Share 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 Link to comment Share on other sites More sharing options...
Botre Posted February 12, 2015 Share 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 Link to comment Share on other sites More sharing options...