Talk:OsNpcGetPos

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(When using invalid NPC key, the return value is: new section)
 

Latest revision as of 09:33, 30 July 2017

[edit] 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)

Personal tools
General
About This Wiki