Jump to content

[LE] Effect not playing.


juffatoot

Recommended Posts

Hi everyone, I've defined terms and effects to play once my quest reaches a certain stage, and the script compiles without error, however in-game the effect never plays, but everything else works. Does anyone know what's going on?

setObjectiveCompleted(40)
setObjectiveDisplayed(50)
PortalEffect.Play(Quaranir, 2, None)
Alias_Quaranir.GetReference().Disable()
Alias_QuaranirMundus.GetReference().Enable()

Thanks in advance,

Johannes.

Link to comment
Share on other sites

Everything seems right to me.

 

2 things that come to mind though is either you forgot to fill the PortalEffect property, or Quaranir is being disabled before the portaleffect plays, and so the function exits and there was no objectreference to play the effect on. The latter shouldn't happen since Play is faster than Disable(it has to wait for the reference to not be held by any variables, etc).

 

OR(just thought of this..) you need to pass Alias_Quaranir.GetReference() to the Play function as well.

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

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