FoliageDesignatorandDestoryer
- Exposure: public
- UE Version: 5.0
ctrl + v
1 comment
-
I wanted to have a system that rewards a player interacting with a foliage instance with resources per action. The issue is that I needed to keep track of how many times a player interacted so that the foliage instance could be destroyed at a certain threshold. I also wanted to make sure the player couldn't gimmick the system by only interacting a couple times, move on to a new instance, then move back achieving unlimited resources. This allows a growing 'list' to be made based of interactions and keeps track of the 'health' of the foliage instances. Once the threshold of ten is reached, the instance is destroyed and removed from the map variable to keep clutter down. In the future, I also intend to add a 'reset' based of time elapsed in game that still gives the illusion that things are not limitless, but prevents the map variable from getting too bogged down.
JoshuaTrimmer
March 23, 2023, 1:34 pm