Reset Object Timer help

Post » Thu Feb 06, 2014 5:04 am

Hi everyone,

Im rather new to scripting and having problems (big suprise). I would like to reset an xMarkerActivator after a certain amount of time in order to reset multiple objects attatched to it. I think I need 2 fuctions to do this: First, the timer to delay the reset from happenning, then the reset command. What I have put together is this:

Scriptname SancResetTimer extends ObjectReference
{Resets Object state after certain time}

Function WaitMenuMode(float afSeconds) native global
Utility.WaitMenuMode(5.0)

Function Reset(ObjectReference akTarget = None) native
xMarkerActivator.Reset()

EndFunction

Naturally it can't be this easy, so the script wont compile. Anyone have any ideas where I went wrong?

User avatar
Carlos Rojas
 
Posts: 3391
Joined: Thu Aug 16, 2007 11:19 am

Return to V - Skyrim