Jump to content

Time delay?


DaveSpins

Recommended Posts

On my current mod, I have an activator set up to move the player to another location. That part was pretty easy. What I want to know, is if there was a way to script it so the game waits for approximately one second before using the Game.GetPlayer part of the script. Basically, I have a spear trap set so it goes off on activation of the activator, and I want it to look as though the player is 'killed'

 

Here's my script so far (The count is so you don't teleport a second time, should you want to try):

 

Scriptname _Death_ extends ObjectReference

{Makes you seem like you die from the trap}

 

int count

ObjectReference Property TeleportMarker auto

 

Event OnActivate(ObjectReference akActionRef)

count = count + 1

if count == 1

Game.GetPlayer().MoveTo(TeleportMarker)

endif

EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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