21.07.2017, 23:07
Hello, hope you all doing great,
so I want to make a fast looting system, by fast I mean, to get the system working on as less lag as possible, optimization is important of course, well, then what would be the great way to check if a player near a certain item?
Method 1
Loop through all items and use IsPlayerInRangeOfPoint at each instance to check if the player's near the item or not
Method 2
Create tiny dynamic areas with streamer at each item's location, and check if a player near the item if they triggered the dynamic area assigned to that item
What could work better you guys?!
Thanks in advance
so I want to make a fast looting system, by fast I mean, to get the system working on as less lag as possible, optimization is important of course, well, then what would be the great way to check if a player near a certain item?
Method 1
Loop through all items and use IsPlayerInRangeOfPoint at each instance to check if the player's near the item or not
Method 2
Create tiny dynamic areas with streamer at each item's location, and check if a player near the item if they triggered the dynamic area assigned to that item
What could work better you guys?!
Thanks in advance