Talk:OsNpcGetPos
From OpenSimulator
Revision as of 08:33, 30 July 2017 by Gwyneth Llewelyn (Talk | contribs)
When using invalid NPC key, the return value is <0.000000, 0.000000, 0.000000>
One annoying characteristic of osNpcGetPos() is that if you use an invalid NPC key, it will return <0.000000, 0.000000, 0.000000>, which is a valid position for an avatar to be (albeit a very strange and extreme one). So you should check first if the NPC key is valid, and only then make a request. (I believe that the same happens with osNpcGetRot()). --Gwyneth Llewelyn (talk) 09:33, 30 July 2017 (PDT)