Jump to content

How Do I Delay an Event


CarnivalOfFear

Recommended Posts

I have this script here.

 

if GetObjectiveCompleted AAAexpanding 20 == 0
Imod FadeToBlackISFX
AAAVGC.KillActor Player  0 0
  SetObjectiveCompleted AAAexpanding 20 1
  SetObjectiveDisplayed AAAexpanding 30 1
RewardXP 60
endif

 

and I want the killing of the actor to take place during the fade to black. could I delay it some how?

Link to comment
Share on other sites

Just set it inside a timer loop.

if GetObjectiveCompleted AAAexpanding 20 == 0
Imod FadeToBlackISFX
SetObjectiveCompleted AAAexpanding 20 1
SetObjectiveDisplayed AAAexpanding 30 1
RewardXP 60
set fTimer to 10
endif

if fTimer > 0
set fTimer to fTimer - GetSecondsPassed
else
AAAVGC.KillActor Player  0 0
endif

 

The value of fTimer will need to be altered depending on your quest delay (if this runs in a quest script). A 1 second delay would make that a 10 second timer, but a .1 second delay makes it just a 1 second timer. If it's in an object script you'll have to play it by ear and test a few values to see how it works.

 

On a side note, this block will run ALL the time until that quest objective is completed. Check the wiki for info.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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