Check if player in range of vehicle passenger's seat doors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Check if player in range of vehicle passenger's seat doors (
/showthread.php?tid=575007)
Check if player in range of vehicle passenger's seat doors -
Banditukas - 23.05.2015
Hi,
Thread saying all.
Re: Check if player in range of vehicle passenger's seat doors -
Yashas - 23.05.2015
You can't do that in PAWN.If you did manage to do it(find door offsets from vehicle pos for each vehicle model) ,its still a bad idea.Player who have custom models will get screwed up.
Re: Check if player in range of vehicle passenger's seat doors -
Banditukas - 23.05.2015
I don't care what modification player use, still can use GetPlayerPos or no? and maybe with this function:
https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
Because i have already getting if player near boot.
Re: Check if player in range of vehicle passenger's seat doors -
Threshold - 23.05.2015
Of course it's possible... Lol.
GetVehicleRelativePos:
http://forum.sa-mp.com/showpost.php?...38&postcount=8
With a combination of GetVehicleModelInfo will allow you to achieve this. Sorry I can't give more help, but I'm on my phone.
Re: Check if player in range of vehicle passenger's seat doors -
Banditukas - 23.05.2015
Yes i read about that but i don't know how to "combine" this make working.
Re: Check if player in range of vehicle passenger's seat doors -
Threshold - 23.05.2015
Before I attempt to make this for you, are you trying to find out if they are near any passenger door, or a specific door? (Eg. Back right passenger door)