11.08.2018, 16:06
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
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