11.08.2018, 16:26
I would recommend method 1. Create areas around the dumpsters (so they are dynamic)
Arent the dynamic area callbacks called when you're in a car aswell?
If not, do what jlalt said - check under "OnPlayerStateChange" to ensure the area is / isn't what you want.
Alternatively you could check whenever the cars(dumpsters) stream in for the player, and then proceed with the code. No sure what you want to do with the checks btw.
This way you do not need a timer. Personally I don't like having timers for these types of things.
Arent the dynamic area callbacks called when you're in a car aswell?
If not, do what jlalt said - check under "OnPlayerStateChange" to ensure the area is / isn't what you want.
Alternatively you could check whenever the cars(dumpsters) stream in for the player, and then proceed with the code. No sure what you want to do with the checks btw.
This way you do not need a timer. Personally I don't like having timers for these types of things.