Jump to content

[Scripting Trouble] Making an Imagespace take effect when entering triggerbox and removing it when exiting it


Govilku

Recommended Posts

I CANNOT figure out why this won't compile everything looks good and this should be real simple.

The player enters the triggerbox, image space applies, they exit, image space modifer removes itself. Simple right?!

Scriptname DAEINITTRIG extends ObjectReference 
Quest Property DaedraInit Auto
Actor Property PlayerRef Auto
ImageSpaceModifier Property IMAGDAE Auto

Event OnTriggerEnter(ObjectReference akActionRef)
	if (akActionRef == PlayerRef)
		DaedraInit.SetStage(5)
		IMAGDAE.remove()
		IMAGDAE.ApplyCrossFade(1)
		IMAGDAE.Apply(1)
	EndIf
EndEvent
	
Event OnTriggerLeave(ObjectReference akActionRef)
	if (akActionRef == PlayerRef)
		IMAGDAE.remove()
	endif
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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