enable script not working why?

Post » Tue Jan 08, 2013 10:55 am

Hi I made a trigger box

and made this script for it ....

Spoiler

Scriptname PROM_LightEnablertrigger extends ObjectReference   bool Property PlayerOnly = TRUE auto{Does this only trigger for the player? (DEFAULT = TRUE)}bool Property Fade = FALSE auto{Fade in/out when enabled/disabled? (DEFAULT = FALSE)} ObjectReference myLinkedRef       Event onTriggerEnter(ObjectReference triggerRef)        if (triggerRef == Game.GetPlayer()) || (!PlayerOnly)            myLinkedRef = GetLinkedRef() as ObjectReference                             myLinkedRef.enable(Fade)               else                GoToState("Done")                endif        endEvent 


Then I used a xmarker and I linked it to the box

then I linked to the xmarker all braziers , ashes and lights and set all of those ( xmarkers only ) to initially disabled

when the player enters the trigger those shoudl fade in but nothing happens any idea why?

I have set in the properteis the fade in and the player only but nothing ..
User avatar
Wayne Cole
 
Posts: 3369
Joined: Sat May 26, 2007 5:22 am

Return to V - Skyrim