Pnubs Posted January 11, 2021 Share Posted January 11, 2021 As the title states, I basically want to press a button and have the ceiling disappear. Can anyone point me to a resource that can help me learn how to do this or provide a how to? Link to comment Share on other sites More sharing options...
maxarturo Posted January 11, 2021 Share Posted January 11, 2021 (edited) Add this script to your activator:* This will enable and disable the REF, like turning on and off a light. ObjectReference Property Ref01 Auto Event OnActivate(ObjectReference akActionRef) If (Ref01.IsEnabled()) Ref01.disable() Else Ref01.enable() EndIf EndEvent Or add this one if you want to do it once: ObjectReference Property Ref01 Auto AUTO STATE Waiting Event OnActivate(ObjectReference akActionRef) Ref01.disable() GoToState("Done") EndEvent ENDSTATE STATE Done ; ENDSTATE * Don't forget to fill in the property with your 'Ceiling' reference. Edited January 11, 2021 by maxarturo Link to comment Share on other sites More sharing options...
Pnubs Posted January 11, 2021 Author Share Posted January 11, 2021 Thank you! Worked perfectly. Say I wanted to add a shimmer effect only when the ceiling is disabled; would I just add another script and reverse the parameters? Link to comment Share on other sites More sharing options...
maxarturo Posted January 11, 2021 Share Posted January 11, 2021 Explain what you mean by "shimmer effect". Link to comment Share on other sites More sharing options...
Pnubs Posted January 11, 2021 Author Share Posted January 11, 2021 Well I'm trying to find an effect in the Creation kit right now but I've definitely seen it in-game. Basically I want to convey a sense of illusion to the player when they press the button. I guess it'd be similar to when the player activates invisibility; they're transparent but you can still kind of see the shape. Anyway to apply this to a static object? Link to comment Share on other sites More sharing options...
maxarturo Posted January 11, 2021 Share Posted January 11, 2021 You can't make objects invisible or semi invisible in CK, you need to create them in an external program then add it to CK. 'invisible' works only on actors by using the corresponding magic effect or through scripting, to static objects you can only apply/play "Effect Shaders", an example of an "Effect Shader" you can see on your enchanted weapon. Link to comment Share on other sites More sharing options...
Pnubs Posted January 11, 2021 Author Share Posted January 11, 2021 Ok got it. I think I'm going to look into effect shaders then. Is it possible to make the effect shader only activate when the button is pressed? Thanks again for the replies. Link to comment Share on other sites More sharing options...
maxarturo Posted January 12, 2021 Share Posted January 12, 2021 Yes you can, but "Effect Shaders" cannot play on disabled objects, so your ceiling will play the visual fx only as long as it is 'Enable'. * You cannot 'Preview' Effect Shaders in CK, you can only see them in game. Link to comment Share on other sites More sharing options...
Pnubs Posted January 12, 2021 Author Share Posted January 12, 2021 Gotcha. I'm actually struggling to find anything about how to attach a shader to an object. Not as simple as selecting it in a drop down box in the CK. Link to comment Share on other sites More sharing options...
maxarturo Posted January 12, 2021 Share Posted January 12, 2021 Explain with simple words what you want to do in order, A, B, C, D.... Also, which script are using from the above ?, so that i'll tweak/add functions to it. Link to comment Share on other sites More sharing options...
Recommended Posts