Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ResourceFinder()//This method, I call for every 30 seconds, when player's job queue is not empty.
- {
- int count = 0;
- foreach (var buildingList in Memory.MemoryAccess.GetCBuildings(Game.Player.Character.Position, 100.0f))
- {
- if (count > Math.Min(49, 50)) break;
- count++;
- if (buildingList.ModelName == "prop_tree_stump")
- {
- UI.ShowSubtitle("Resource Found");
- }
- else
- {
- UI.ShowSubtitle("Resource NOT Found");
- }
- }
- }
Add Comment
Please, Sign In to add comment