Zappster Posted December 1, 2015 Share Posted December 1, 2015 I'm getting the rotation of an NPC and .getRoration() returns an int, which is fine. My problem is that in the API it's not documented what the return is for north,east,south and west. I kinda need those and don't have the ability to test for a few days - so, if any of you guys have int value for North,south,east and west can you please post them? Quote Link to comment Share on other sites More sharing options...
FrostBug Posted December 1, 2015 Share Posted December 1, 2015 It's probably a value between 0 and 2048 for use in SIN/COS tables.. not 100% sure tho Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted December 1, 2015 Share Posted December 1, 2015 It returns 0 - 2048. Every 45° degree you turn changed the value by 256 I can't say whats south or north atm, just test it out You cna also do "int rotation = 2048/256;" Now you'll have 8 numbers from 0-7 that represent the values. Khaleesi 3 Quote Link to comment Share on other sites More sharing options...