![]() ![]() ![]() Use triggers to make it possible for items to get picked up.You can also call this function for other purposes. Add an action to this method on show and hide for all UIWindows that need mouse interaction. The FPSGame component provide a function that toggles pausing the game (which allows you to use the mouse to interact with the UI).To have this same behavior on a collection, you need to add the WeaponRestrictionBehaviour on your player (next to the creator script), and specify the collection name. RFPSP only allows you to have one weapon of each type.Add the Weapon component to each weapon under FPS Weapons, and link in the appropriate item definition file for that weapon.Add the following components to your FPS Player object, and configure the collections you will need.Also add the following components to the _Managers object: ![]() Add the _Managers object to your scene, with all required managers.More details on how to setup items are given below. This is done just like creating normal items through the Main Editor. Define the items you will need, including weapons and ammunition.To setup your scene to use these items, you need to do the following: For example, if you pickup a weapon, it becomes available as a weapon you can use to shoot using Food will reduce your player's hunger and boost its health. These items all work with the setup of RFPSP. This integration provides components that work with the RFPSP asset. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |