Pickups were relatively easy to program.
For Health Pickups, I set the collision to none, meaning the player doesn't have to press a key to unlock. I then casted to third person character, and had their health increased by 200. To ensure this is temporary, I had the actor destroy itself once touched, so the player has to be conservative in when they should use pickups or not.
For stamina pickups, I copied the health pickup, but instead replaced any mention of health with stamina. This was handy, for efficency's sake.
Comments