I have some game levels where I would like to be able to move the player around using elevators, platforms and also have an enter-able drop ship (back end) that I would like the player to get in to move him to a locations.I have a lot of High areas like platforms atop very high buildings and tops of skyscrapers the player needs to get to. There's also an activateOnEnable checkbox that you can play with to start the timer automatically when the script is enabled. The process might be slightly different depending on how you've set up your status effects. When you trigger the effect, call the TimedEvent script's StartTimer method. Then from the dropdown select GameObject > SetActive if your effect disables itself by deactivating the GameObject, or the script name > enabled if the effect disables itself by disabling the script. In the OnTimeReached() section, click "+" to add a new slot. Set the Duration to the number of seconds when it should come back.ģ. Make the effect GameObject a child of this empty GameObject.Ģ.
#UNITY ASSET REALISTIC FPS PREFAB HOW TO#
Here's the basic idea of how to use it:ġ. You can use the C# script below (TimedEvent) to time things. Make sure your health is also set up for regular RFPS-style interaction. Click to expand.Reminds me of a cross between Doom and Serious Sam!īy "pick up health on trigger" do you mean walking over it (i.e., entering its trigger collider)? If so, the short script in this post should do it.