Help with a OnHit script please

Post » Sat Jan 04, 2014 5:07 am

Actor Property Act1 AutoQuest Property MyQuest AutoInt Property StageToSet AutoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, Bool abPowerAttack, Bool abSneakAttack, Bool abBashAttack, Bool abHitBlocked)    If akAggressor != Act1 ; Property is much faster/no need to cast to actor        return    endIf    GoToState("Done")    ;Debug.Trace("The player hit me!")MyQuest.SetStage(StageToSet)EndEvent

I think I may know what is wrong but need confirmation. I have a mage-ish NPC who is firing sparks at an xmarker. What I want him to do (4 xmarkers in total) is hit the first with the spell, the OnHit then sets stage to the next which evaluates his package and he goes to the next xmarkerheading and fires upon the next xmarker and so on to all 4 have been hit. Thing is he goes to the first, casts the spell then stands still, the quest doesn't progress. I think, I may be way off here, that the xmarker is not registering the hit. Am I correct? Can xmarkers register hits, can statics register hits or is it only activators?

Thanks guys.

User avatar
Markie Mark
 
Posts: 3420
Joined: Tue Dec 04, 2007 7:24 am

Post » Sat Jan 04, 2014 11:51 am

XMarker's cant be hit as they don't have a model or any collision in game.

User avatar
Nicole Kraus
 
Posts: 3432
Joined: Sat Apr 14, 2007 11:34 pm


Return to V - Skyrim