Jump to content

How to fail an objective


Mr777Nick

Recommended Posts

So I want to make an objective failed when the player is hit by the enemy (on this case, he is Keith). I've tried to create an alias to the player and then add a script to that alias. Here's the script:

 

Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile)

If akAggressor == Alias_Keith.GetRef()

HeathcliffFirstQuest.SetObjectiveFailed(3)

EndIf

EndEvent

 

CK.com says that the number on the bracket in SetObjectiveFailed() is the position number of The objective. The first objective is read the note. The second objective is kill the enemy and the third is the objective above. There is no error when I compile the script, but on the game the script doesn't work. Someone else got any idea?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...