Jump to content

The OnDeath(Actor akKiller) problem.


JcHARP

Recommended Posts

OK, so for my script. I want to be able to check that when I kill the guy and his guard the stage progresses.

 

Here is what I have so far:

{This is the OnDeath event to progress the quest!}
Event OnDeath(Actor akKiller)

	If Alias_JOBLaniusTarionAlias && Alias_JOBLaniusGuardAlias
		JOBMQ00.SetStage(15)
	EndIf

EndEvent

 

What I planned on doing was, attach this script to both Refs and then let it fire one time when they die.

 

I don't know if I have to use the .GetDead condition or not. So, what I think is going on is that OnDeath specifies already that if they are dead then the script will fire.

 

I do need help on this and any will be appreciated :)

Link to comment
Share on other sites

GetDead is a console command. The papyrus equivalent would be IsDead().

 

Event OnDeath(Actor akKiller)

	If Alias_JOBLaniusTarionAlias.GetActorRef().IsDead() && Alias_JOBLaniusGuardAlias.GetActorRef().IsDead()
		JOBMQ00.SetStage(15)
	EndIf

EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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