Scripts / GetPlayerDistance work in 3 dimensions?

Author
Message
pauly139
8
Years of Service
User Offline
Joined: 6th Aug 2015
Location:
Posted: 7th Aug 2015 13:03
Hi

I'm using GetPlayerDisdtance to determine proximity to objects, which works fine when they are at the same level, but does not seem to work when the object is significantly higher or lower than the player. Anyone else found this?

Rgds
Paul
PM
pauly139
8
Years of Service
User Offline
Joined: 6th Aug 2015
Location:
Posted: 7th Aug 2015 13:30
ok kind of got it to work. I'll try knocking up a more precise version of GetPlayerDistance function which uses trigonometry to work out the distance more precisely based on vertical offsets.
PM

Login to post a reply

Server time is: 2024-05-06 17:09:52
Your offset time is: 2024-05-06 17:09:52