Jump to content

[LE] Making an activator hide an object


Pnubs

Recommended Posts

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 by maxarturo
Link to comment
Share on other sites

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

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

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

  • Recently Browsing   0 members

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