{"action":"created","issue":{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/180","labels_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/180/comments","events_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/180/events","html_url":"https://github.com/crosire/scripthookvdotnet/issues/180","id":85808648,"number":180,"title":"GetGroundZ is error prone","user":{"login":"RainerHilmer","id":207564,"avatar_url":"https://avatars.githubusercontent.com/u/207564?v=3","gravatar_id":"","url":"https://api.github.com/users/RainerHilmer","html_url":"https://github.com/RainerHilmer","followers_url":"https://api.github.com/users/RainerHilmer/followers","following_url":"https://api.github.com/users/RainerHilmer/following{/other_user}","gists_url":"https://api.github.com/users/RainerHilmer/gists{/gist_id}","starred_url":"https://api.github.com/users/RainerHilmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainerHilmer/subscriptions","organizations_url":"https://api.github.com/users/RainerHilmer/orgs","repos_url":"https://api.github.com/users/RainerHilmer/repos","events_url":"https://api.github.com/users/RainerHilmer/events{/privacy}","received_events_url":"https://api.github.com/users/RainerHilmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-06T20:17:04Z","updated_at":"2015-06-21T21:31:59Z","closed_at":"2015-06-08T11:33:18Z","body":"I got grey hairs because I couldn't make the player character follow the nav mesh to a waypoint until I found this essential important note in the natives DB:\r\n\"Note that if the specified position is below ground level, the function will output zero!\"\r\nI solved this issue myself with a simple extension method\r\n      public static Vector3 ToGround(this Vector3 position)\r\n      {\r\n         position.Z = 1000.0f;\r\n         return new Vector3(position.X, position.Y, World.GetGroundZ(position));\r\n      }\r\nMaybe you can do the same little trick to prevent headaches by the users.\r\nFull story here:\r\nhttp://gtaforums.com/topic/797312-strange-behavior-of-taskgoto/?p=1067559820"},"comment":{"url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/comments/113962197","html_url":"https://github.com/crosire/scripthookvdotnet/issues/180#issuecomment-113962197","issue_url":"https://api.github.com/repos/crosire/scripthookvdotnet/issues/180","id":113962197,"user":{"login":"IncoCode","id":6574672,"avatar_url":"https://avatars.githubusercontent.com/u/6574672?v=3","gravatar_id":"","url":"https://api.github.com/users/IncoCode","html_url":"https://github.com/IncoCode","followers_url":"https://api.github.com/users/IncoCode/followers","following_url":"https://api.github.com/users/IncoCode/following{/other_user}","gists_url":"https://api.github.com/users/IncoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/IncoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IncoCode/subscriptions","organizations_url":"https://api.github.com/users/IncoCode/orgs","repos_url":"https://api.github.com/users/IncoCode/repos","events_url":"https://api.github.com/users/IncoCode/events{/privacy}","received_events_url":"https://api.github.com/users/IncoCode/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T21:31:59Z","updated_at":"2015-06-21T21:31:59Z","body":"@RainerHilmer why wrong? ```pos.ToString()``` returns string ```X: some_x_value Y: some_y_value Z: some_z_value```, ```pos.Z.ToString()``` returns ```some_z_value```."}}