S3R0 Posted April 1, 2016 Share Posted April 1, 2016 Is there anything in the API which checks for object orientation? For example, a gate's orientation is set to 2, but when opened, is set to 3. Quote Link to comment Share on other sites More sharing options...
The Hero of Time Posted April 1, 2016 Share Posted April 1, 2016 (edited) the ID of a gate/door is different when its open. also the position of it is different. so you can check on 2 things you can check the position and ID of objects by enabling entity hovering debug cheers Edited April 1, 2016 by The Hero of Time 3 Quote Link to comment Share on other sites More sharing options...
S3R0 Posted April 1, 2016 Author Share Posted April 1, 2016 the ID of a gate/door is different when its open. also the position of it is different. so you can check on 2 things you can check the position and ID of objects by enabling entity hovering debug cheers Oh ... I didn't even check to see if the ID had changed LOL. Thanks much! Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 1, 2016 Share Posted April 1, 2016 Oh ... I didn't even check to see if the ID had changed LOL. Thanks much! You can also check if it contains the action "Open" to determine if it's open or not 2 Quote Link to comment Share on other sites More sharing options...
DragonAlpha Posted April 1, 2016 Share Posted April 1, 2016 Oh ... I didn't even check to see if the ID had changed LOL. Thanks much! objects.closest("Gate").hasAction("Open") or hasAction("Close") Quote Link to comment Share on other sites More sharing options...
Botre Posted April 1, 2016 Share Posted April 1, 2016 RS2Object object = .... object .getOrientation(); Quote Link to comment Share on other sites More sharing options...
The Hero of Time Posted April 1, 2016 Share Posted April 1, 2016 RS2Object object = .... object .getOrientation(); Quote Link to comment Share on other sites More sharing options...
Botre Posted April 1, 2016 Share Posted April 1, 2016 (edited) Edited April 1, 2016 by Botre 1 Quote Link to comment Share on other sites More sharing options...
Vilius Posted April 1, 2016 Share Posted April 1, 2016 It will be big numbers tho not 0-3 so you need to divide that by 512 if I recall correctly Quote Link to comment Share on other sites More sharing options...