How to use Quest Gizmo with Trigger Gizmo
In this lession you will learn how to use Quest Gizmo with Trigger Gizmo. We will simply add a trigger zone gizmo and script gizmo to the scene and after we will create a script that will complete a quest when the user enter the trigger zone.
Complete a Quest by entering a trigger Gizmo
1. Add a Trigger Zone Gizmo to the scene.
-
Once you setup your first quest, add a Zone Trigger Gizmo to the scene.
2. Add a Script Gizmo to the scene.
-
Add a Script Gizmo to the scene and rename it to something relevent.
3. Setup the script.
-
From the events script, choose : When Trigger is entered by player.
-
From the action scripts, add the: Set Achievement complete for player to the event.
-
Now its time to setup the actions script. In the dropdown select the achievement you want the be complete. In that case, we will select the achievement we created earlier. (Quest 1)
-
Now you need to set the player for who the quest will be complete, Drag and drop the green player pill in the event script into the appropriate slot.
4. Attach the script to the Zone Trigger Gizmo.
-
Select and edit the Trigger Zone. In the bottom of the details panel of the Zone Trigger Gizmo, at the attached script zone, select the script you created.
5. Test the Quest Gizmo with the Trigger Zone Gizmo
-
Go in play mode and enter the trigger zone. The quest should be complete.