Tasemu Posted May 15, 2017 Share Posted May 15, 2017 Hey there, is there a decent check for my player being in or out of combat? And what about other players? I'm seeing spash bots in the chicken areas and I cannot find any combination of checks (yet) in the api to handle it. My current home-made combat checking is pretty flakey, and if people are splashing spells then my script is trying to take their chickens haha ^^ Quote Link to comment Share on other sites More sharing options...
Deceiver Posted May 15, 2017 Share Posted May 15, 2017 isincombat or interacting() Quote Link to comment Share on other sites More sharing options...
Shudsy Posted May 15, 2017 Share Posted May 15, 2017 myPlayer().isUnderAttack() Quote Link to comment Share on other sites More sharing options...
Token Posted May 15, 2017 Share Posted May 15, 2017 Applies to both being attacked and attacking, as well as for other npcs/players if twist the code a bit 1 Quote Link to comment Share on other sites More sharing options...