Which is the better method?
#1

Hey

Which is the better method to detect that the player is near to a dumpster. I have about 250 positions and i want to check when the player comes to it.

Method one: Create dynamic areas to all of the dumpsters and use the area callbacks (OnPlayerEnter..., OnPlayerLeave...)

Method two: Use a fast (about 500-700ms) per player timer and check with IsPlayerRangeOfPoint...

I don't want to check if the player is in any vehicle and whenever a player is running too fast.
I think i have to use the second method, becouse whenever a player is in a vehicle i cant use OnPlayerEnterDynamicArea, becouse when the player leaves the vehicle, it's still in the dynamic area.

Sorry for my bad english.
I need your advices,
Thanks
Reply


Messages In This Thread
Which is the better method? - by m4karow - 11.08.2018, 16:06
Re: Which is the better method? - by Dennis12 - 11.08.2018, 16:12
Re: Which is the better method? - by denNorske - 11.08.2018, 16:26
Re: Which is the better method? - by m4karow - 11.08.2018, 16:35
Re: Which is the better method? - by iLearner - 11.08.2018, 17:29
Re: Which is the better method? - by Pottus - 11.08.2018, 17:31
Re: Which is the better method? - by NaS - 11.08.2018, 17:35
Re: Which is the better method? - by m4karow - 11.08.2018, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)