Detect if a player is near the driver door.
#1

So I've spent a fairly large amount of time trying how to do this on my own.
But I'm finally going to ask on here.
Does anyone know how they can detect if a player is standing next to a vehicles driver side door?
I had a few different ideas, but they quickly fell apart as they proved to be extremely inaccurate.
Thank you for anyone who can help.
Reply
#2

JernejL provided every vehicle's offset, you can check it out: https://sampforum.blast.hk/showthread.php?tid=164251

It will just require some mathematical calculations to get the position between player and vehicle's door offset.
Reply
#3

Quote:
Originally Posted by iZN
Посмотреть сообщение
JernejL provided every vehicle's offset, you can check it out: https://sampforum.blast.hk/showthread.php?tid=164251

It will just require some mathematical calculations to get the position between player and vehicle's door offset.
Thanks for sharing! That's going to help alot.
Reply
#4

Or you could just use the native implementation: https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
Reply
#5

The link you posted does not have doors as a option.
I went ahead and used the first link provided, and figured out what I needed.
Thank you both for the help though. I'll +Rep when I'm able too again.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)