Interaction With The World
Overview
Unity and NeoFPS provide a number of ways for characters to interact with the world.
Interactive Objects
NeoFPS also has its own system of interactive objects. These allow the player to use items in order to trigger actions.
Doors are a good example of interactive objects, and NeoFPS includes a number of examples to use as reference.
Trigger Zones
Trigger zones are a fundamental concept for level design and game design as a whole. For information on how to make use of them, please see the Unity documentation.
NeoFPS has a number of helper behaviours that simpllify using triggers to drive game mechanics.
The CharacterZoneTrigger and CharacterZoneTriggerPersistant fire code events when a character enters. These events are not tied to a specific implementation of the NeoFPS character and the only requirement is that they inherit from the ICharacter
interface. Some scripting is required to use these behaviours.
The SoloCharacterZoneTrigger and SoloCharacterZoneTriggerPersistant fire Unity events when an FpsSoloCharacter enters. As such, they require less scripting knowledge to use, but they are constrained to the specific character implementation or characters that derive from this.