Jump to content

Recommended Posts

Posted

Heyas,

I'm trying to write a script on a magic effect so when it finished it starts a scene I've created. But the Creation Kit throws this error at me:

  Reveal hidden contents



This is the script:

Scriptname LoopyNoopysScripts:LNPiperCompanionTimerMEScript extends activemagiceffect Conditional

Actor Property LNPlayerREF Auto Conditional

Event OnEffectFinish(Actor LNPlayerREF)
	LNPiperLeaveForMagScene.Start()
EndEvent

Scene Property LNPiperLeaveForMagScene Auto Conditional

My question is why is this script giving me that error and how can I fix it?

Posted

The problem seems to be your event, Try it like this

Event OnEffectFinish(Actor akTarget, Actor akCaster)

If you only want it to trigger if the effect ends on the player then you can replace your LNPiper.... with:

If(akTarget == LNPlayerREF)
   LNPiperLeaveForMagScene.Start()
EndIf
Posted

You can't assign the parameters of the event (akTarget and akCaster), They are used inside the event to get information about it. In this case who the target was(akTarget) and who casted the magic effect(akCaster).

  • Recently Browsing   0 members

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