S3R0 Posted April 1, 2016 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.
The Hero of Time Posted April 1, 2016 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
S3R0 Posted April 1, 2016 Author 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!
Khaleesi Posted April 1, 2016 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
DragonAlpha Posted April 1, 2016 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")
The Hero of Time Posted April 1, 2016 Posted April 1, 2016 RS2Object object = .... object .getOrientation();
Vilius Posted April 1, 2016 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