Jump to content

script that moves an actor if they are alive when a quest stage is set


Recommended Posts

What I want to happen is when a quest stage has been set, if the actor is alive it will move them to a location.

 

the script I am trying to use

 

Scriptname moveactorifalive extends Quest

 

Actor Property Mut Auto Const

 

ObjectReference Property XMarker Auto Const

 

ActorValue Property Health Auto Const

 

Event OnQuestStage(int newStage, int oldStage)

if (newStage == 20 && Mut.GetDeadCount() == 0)

Mut.MoveTo(XMarker);

endif

EndEvent

 

it says that getdeadcount is not a function. and will not compile

i also tried actor value for health but that didn't work either.

 

thank you, sorry for my bad scripting.

Edited by dietplums
Link to comment
Share on other sites

  • Recently Browsing   0 members

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