Check vehicles nearby
#10

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
1) No, for moved vehicles I could use GetVehiclePos. It depends, I am telling you that simply I won't suggest using GetVehiclePos for every vehicle, even the one standing untouched in their spawn place.
Scenario: Max vehicles is 1000, players online are 200. Not all of them are in a vehicle for sure. Some vehicles got rammed away 100% and I can assure you some will go on spawn points. And why not, explode. Make a player spawn there and he will shout "F****NG SERVER" and puff go away forever.
Yet you still have to keep track of the vehicles to know their position. My point...

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
2) Yes, and your code will be needed to re-execute eveytime the model changes, right?. If there are only 1 FBI rancher you will loop MAX_VEHICLES for what? And there are 4 sanchez on that hill. That is a waste as you loop every vehicle and do something only on some of them. Btw, technically you are not comparing the distances but checking if the player is in range of point of such points. IsPlayerInRangeOfPoint doesn't return the distance, but only if you are near there or not.
No. And take a wild guess at how IsPlayerInRangeOfPoint works under the hood...lol.

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
3) I prefer listening to who's more pro than I'll ever be.
Hello.

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
I am sorry if I misunderstood anything. Guests came and cant reply properly. Ill pass by later.
I don't expect you to understand something you simply cannot comprehend. No worries. You will one day hopefully.
Reply


Messages In This Thread
Check vehicles nearby - by Drak03 - 26.03.2018, 12:55
Re: Check vehicles nearby - by v1k1nG - 26.03.2018, 13:32
Re: Check vehicles nearby - by Grim_ - 26.03.2018, 13:48
Re: Check vehicles nearby - by v1k1nG - 26.03.2018, 14:55
Re: Check vehicles nearby - by Grim_ - 26.03.2018, 15:01
Re: Check vehicles nearby - by v1k1nG - 26.03.2018, 15:26
Re: Check vehicles nearby - by Grim_ - 26.03.2018, 15:41
Re: Check vehicles nearby - by v1k1nG - 26.03.2018, 16:05
Re: Check vehicles nearby - by Lokii - 26.03.2018, 16:27
Re: Check vehicles nearby - by Grim_ - 26.03.2018, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)