Share: Completing an objective by killing a particular enemy using onDying event

Hi,

Just want to share some of my thinking about completing an objective by killing a particular enemy. I believe there are more efficient way of doing the same, please let me know if there could be any improvement.
Here is a demo quest:
image

When completing the first objective, and find the thug, after talking with the thug, it will trigger the “Attack”:

The key is to hook the QuestCompletion.CompleteRelativeObjective() under the OnDayingEvent under Health.cs; Then it will trigger update the 2nd objective “Defeat the thug.”.

image

Currently this is only work with 1 particular enemy/target.

Looks like you’re off to a good start!

I guess this can be used for completing quest regarding killing certain boss or key enemy.

Privacy & Terms