Loop through all vehicles, checking if player stands opposite of vehicle door
#2

This one is tricky. First, you have to fetch all vehicles which are close to player. Looping through all vehicles is not a good idea, best if you'd create some sort of areas, or just use the already streamed cars for specific player. Next, you have to determine the car door position - I'd suggest using this https://sampforum.blast.hk/showthread.php?tid=164251 . Check the distance between each door you want, and voila.
Reply


Messages In This Thread
Loop through all vehicles, checking if player stands opposite of vehicle door - by Riwerry - 24.01.2014, 16:25
Re: Loop through all vehicles, checking if player stands opposite of vehicle door - by Misiur - 24.01.2014, 16:49
Re: Loop through all vehicles, checking if player stands opposite of vehicle door - by Riwerry - 24.01.2014, 17:04
Re: Loop through all vehicles, checking if player stands opposite of vehicle door - by MP2 - 24.01.2014, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)