Objectives
Last updated
Last updated
Select or create a new Objectives asset. In the desired folder, right-click and select Create -> UHFPS -> Game -> Objectives Asset.
Add a new objective to the Objectives list. Each objective consists of sub-objectives, so make sure to add a new sub-objectives into the Sub Objectives list.
Assign the objectives asset to the Objective Manager component, which can be found in the GAMEMANAGER.
To trigger an objective, add an Objective Trigger component to the corresponding object. You can activate the objective via the Trigger, Interact, or Event.
To assign an objective, click on the link icon located on the right side of the objective block.
To activate an objective via an event, set the Trigger Type to Event. Then, simply call the TriggerObjective() method to activate the objective. You can call this method, for example, by adding the On Take Event when picking up an object.