Hello,
I am developing a game in VR and don't want to use quest giver function. How do I change quest "Current status" from Inactive to Active using unity events?
I cant seem to get it working.
Start Quest on Event
Re: Start Quest on Event
Hi,
You can wrap the code in this article into a method, and then call that method from your UnityEvent.
Alternatively, if you don't want to do any scripting, let's say you have an enemy with an OnDeath() UnityEvent, and you want to give a quest when this UnityEvent is called. Add a Quest Giver component to the enemy, and add the quest to its Quests list. Configure OnDeath() to call QuestGiver.GiveAllQuestsToQuester. You can choose to give it to the player by assigning the player's GameObject or by the ID string assigned to the player's Quest Journal.
You can wrap the code in this article into a method, and then call that method from your UnityEvent.
Alternatively, if you don't want to do any scripting, let's say you have an enemy with an OnDeath() UnityEvent, and you want to give a quest when this UnityEvent is called. Add a Quest Giver component to the enemy, and add the quest to its Quests list. Configure OnDeath() to call QuestGiver.GiveAllQuestsToQuester. You can choose to give it to the player by assigning the player's GameObject or by the ID string assigned to the player's Quest Journal.