DaveSpins Posted April 30, 2012 Share Posted April 30, 2012 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 countObjectReference Property TeleportMarker auto Event OnActivate(ObjectReference akActionRef) count = count + 1 if count == 1 Game.GetPlayer().MoveTo(TeleportMarker) endifEndEvent Link to comment Share on other sites More sharing options...
davidnowlin Posted April 30, 2012 Share Posted April 30, 2012 Event OnActivate(ObjectReference akActionRef) Utility.Wait(1.00) ***do something*** EndEvent Link to comment Share on other sites More sharing options...
DaveSpins Posted April 30, 2012 Author Share Posted April 30, 2012 Event OnActivate(ObjectReference akActionRef) Utility.Wait(1.00) ***do something*** EndEvent Thanks, it worked like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts