Questions about an Essential PlayerREF

Post » Tue Dec 04, 2012 11:01 am

So, I have made my player essential for a particular arena I have set up. Basically, if you die in the arena, you are simply teleported outside so that you may try again. It isn't working though. My player goes down to his knees rather than die, as one would expect, but he doesn't teleport and he doesn't ever get up. I dunno what's wrong here.
This is the script on the ability he has that should move him outside of the arena.

Scriptname Merc_Script_BaseBleedout extends Actor;ObjectReference Property MercChoiceMark autoGlobalVariable Property Merc_Glob_LevelTimer autoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)   if GetActorValue("Health") <=0Merc_Glob_LevelTimer.SetValue(1)   endIfendEvent

Any help appreciated.
User avatar
hannah sillery
 
Posts: 3354
Joined: Sun Nov 26, 2006 3:13 pm

Post » Tue Dec 04, 2012 6:48 am

My guess is either than yo need to attach self. to GetActorValue or that after the player 'dies' they need to be normal again to be teleported.
User avatar
NeverStopThe
 
Posts: 3405
Joined: Tue Mar 27, 2007 11:25 pm


Return to V - Skyrim