⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    FpsSoloGameMinimal MonoBehaviour

    Overview

    The minimal game setup is intended for testing and development purposes. It simply spawns the specifed player and character, and can be set to perform various actions on the player character's death.

    Inspector

    FpsSoloGameMinimal MonoBehaviour

    Properties

    Name Type Description
    Death Sequence Duration Float The time in seconds between the player character dying and respawning.
    Player Prefab FpsSoloPlayerController The player prefab to spawn if no player exists (players are persistant).
    Character Prefab FpsSoloCharacter The character prefab to spawn.
    Spawn On Start Boolean Should the game mode automatically spawn a player character immediately on start.
    Death Action Dropdown What to do if the player character is killed. Available options are:
    • Respawn will spawn a new player character at the next available spawn point
    • ReloadScene will reload the scene from fresh, resetting everything
    • MainMenu will unload the scene and take the player back to the main menu
    • ContinueFromSave will load the last save (based on the SaveGameManager settings) if available and reload the scene if not.
    • RespawnWithItems will spawn a new player character at the next available spawn point, but their inventory will match the inventory on death (take care not to drop items on death as well as this)
    • ReloadScene will reload the scene from fresh, resetting everything
    Starting Loadout FpsInventoryLoadout An optional inventory loadout for the character on spawn (this will replace their starting items).
    Replace Starting Items Boolean How should the loadout be applied to the character. Should it replace the character's starting items or be added alongside them.

    See Also

    FpsSoloPlayerController

    FpsSoloCharacter

    FpsInventoryLoadout

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX