Import treasure box asset
(With Anim seqeuence for open and close the box)
Create a BP class Actor, called BP_Treasure
Add mesh component and sphere collision, rotate and scale
Collision preset as Overlap Dynamic
Create BP interface, called BPI_Treasure
Open it, name as Open chest, add output and choose item in variable that cerated before in structure (or simply drag the Treasure mesh from component and create its variable to connect to the return node
Add the BPI in class setting in BP mesh
Double click the interface and make nodes as below
Create variable called item, make it visible
Open 3rd person BP
In Quest system made earlier, add a extra branch on false branch node between interact on below:
If making BPC equipment system in other tutorial, can extend the graph as below:
Make completed objective in quest:
Go to details of the QuestGiver BP in the scene,
Add the objective in 1 of the index, untick completed, tick is chest objective, choose the BP_chest by dropper
Open BP Component Quest (made before)
Add custom event and input variable as chest,
drag ActiveQuest variable (split it), connect them to for each loop and as follow:
Continue
Open BP chest box (hotkey: select the asset in scene, then Ctrl E)
add follow cast to 3rd person after play animation node
Now after talk to quest giver, mission show but not tick,
will tick once the quest is completed