Jump to content

fountain


tehoneandonly

Recommended Posts

Ya, if you're trying to set a Linked Ref, Enable Parent, etc - the thing you're trying to choose must be persistent. If you hit "Select reference in render window", a croasshair appears. The crosshair will be red on things you can't select, and it will be white on things you can select. It must be persistent for the crosshair to turn white. when you hover over the object.

 

You could put a script on the activator and then open the Linked Ref tab on the activator and select the water (the water would need to be persistent).

 

scn FountainSwitchScript

short doOnce
ref linkedRef

Begin OnActivate
       if IsActionRef Player
       
               if linkedRef == 0
                       set linkedRef to GetLinkedRef
               endif
       
               if doOnce
                       linkedRef.Enable
                       set doOnce to 0
               else
                       linkedRef.Disable
                       set doOnce to 1
               endif

               Activate
               
       endif
End

Or set the water to persistent and forget the Linked Ref stuff and just specify the references name:

 

scn FountainSwitchScript

short doOnce

Begin OnActivate
       if IsActionRef Player

               if doOnce
                       TheNameOfMyWaterRef.Enable
                       set doOnce to 0
               else
                       TheNameOfMyWaterRef.Disable
                       set doOnce to 1
               endif

               Activate
               
       endif
End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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