juffatoot Posted December 11, 2017 Share Posted December 11, 2017 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 More sharing options...
Evangela Posted December 11, 2017 Share Posted December 11, 2017 (edited) 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 December 11, 2017 by Rasikko Link to comment Share on other sites More sharing options...
Recommended Posts