Below is the code for lowering the water level in a room but I can't figure out how to update the effects for the player. The water level goes down just fine but the player will still be swimming in the room until there is a cell load that will update the new water level. I cant find anything so that I know how to update the FX. If anyone has any info that would be great.
Scriptname BAMM_WaterTranslateScript extends ObjectReference{Water Translate Script for Pump Activation};========;;PROPERTIESInt Property CurrentState = 1 Auto HiddenObjectReference Property LowMarker Auto{Xmarker Destination Water Height}Float Property WaterHeight Auto{Current Position Z}Int Property translateSpeed = 50 Auto{Water Descending Speed}float property afX autofloat property afY autofloat property afZ autofloat property afXAngle autofloat property afYAngle autofloat property afZAngle auto;=====;;STATESAuto State Phase1 Event OnActivate(ObjectReference akActionRef) CurrentState = 2 Debug.Trace("Entered state!") GoToState ("Phase2") EndEventEndStateState Phase2 Event OnBeginState() afX = Self.GetPositionX() afY = Self.GetPositionY() afZ = LowMarker.GetPositionZ() afXAngle = Self.GetAngleX() afYAngle = Self.GetAngleY() afZAngle = Self.getAngleZ() Debug.Trace(afx + "Xpos" + afy + "Ypos" + afz + "Zpos" + TranslateSpeed + "Speed") TranslateTo(afX, afY, afZ, afXAngle, afYAngle, afZAngle, TranslateSpeed, 0.0) Debug.Trace("Translate Called") EndEvent Event OnTranslationComplete() Debug.MessageBox("Water has Subsided") GoToState("Done") EndEventEndStateState Phase3EndStateState Phase4EndStateState Done;Send Here when completeEndState;=======;;FUNCTIONSQuestion #2
The fx even without the water lvl change seem to be intermitent. You can jump out and then back in and the fx(Sound) go away and then come back sometimes but not others. Is this behavior normal?
Question #3
I am looking to figure out how to join 2 or more water planes together to fill irregular shapes. They seem to be a single square but won't line up at all.
Thanks. Any help would be appreciated.
