Jump to content

need help with an NPC attacking after a certain amount of time


cjmckee

Recommended Posts

you see, I am trying (keyword: trying) to make an NPC attack the player after quest stage 10 finishes, and a couple of earth minutes pass. Ive tried allot of things, and nothing works. Here is the script i am currently using:

 

SetObjectiveCompleted(10)
SetObjectiveDisplayed(20)
Utility.Wait(120)
Alias_manicarch.GetActorRef().SetAV("Healthoffset",0)
Alias_manicarch.GetActorRef().SetAV("Health",10)
Alias_manicarch.GetActorRef().StartCombat(Game.GetPlayer())

 

The reason for the HP stuff, is cause my NPC for some reason starts off levitating. (i lowered some terrain for the purpose of the quest), and if he had less HP then like 300, he'd die on impact. After the NPC's death, i would like it to register that hes dead, and advance the quest to stage 30.

 

Allot of stuff, i know. Any help anyone can give is greatly appreciated.

Edited by cjmckee
Link to comment
Share on other sites

  • Recently Browsing   0 members

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