Jump to content

[Script] Translating a plane of water


Zorkaz

Recommended Posts

I want to move a plane of water (Activator) higher up but it behaves weirdly.

 

First it does nothing and after some seconds the plane of water transports to the end position.

Any thoughts or hints on this?

ObjectReference Property Water Auto
ObjectReference Property Xmarker Auto
MiscObject Property Plunger Auto

Event OnActivate (ObjectReference AkActionRef)
Game.getplayer().Additem (Plunger)
Self.disable()
Water.TranslateToRef(Xmarker , 10.0)

EndEvent

 

Link to comment
Share on other sites

Just got this from another wiki page

Translating water activators:
Water plane activators can be translated, but their collision does not move with them unless the "Movable" keyword is added to the activator. This can be seen in TG08Water1024.

 

Link to comment
Share on other sites

As long as you add "movable" to the water plane it works.

 

I made a water plane that goes up and down, referencing two xmarkers at the top and bottom

Scriptname TBRWaterShaftScr extends ObjectReference


Quest Property TBRBackroomsQuest Auto
ObjectReference Property Xmarkerup Auto
ObjectReference Property XmarkerDown Auto
Int Property Into Auto


Event OnCellLoad()
If TBRBackroomsQuest.isrunning()
StartTimer (35, 100)
Endif
EndEvent


Event OnTimer (Int AiTimerID)
If AiTimerID == 100
If TBRBackroomsQuest.isrunning()
StartTimer (35, 100)
If Into == 0
Self.TranslateToRef(XmarkerUp , 60.0)

Into = 1
Else
Self.TranslateToRef(XmarkerDown , 60.0)
Into = 0
Endif



Endif
Endif
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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