Show / Hide Table of Contents

Class SharedWater

Class used to create bodies of water on the map

Inheritance
Object
Element
PhysicalElement
SharedWater
Inherited Members
PhysicalElement.Dimension
PhysicalElement.Interior
PhysicalElement.Frozen
PhysicalElement.Alpha
PhysicalElement.Health
PhysicalElement.Model
PhysicalElement.CollisionShape
PhysicalElement.CollisionsEnabled
PhysicalElement.LowLODElement
PhysicalElement.DoubleSided
PhysicalElement.IsInWater
PhysicalElement.IsLowLOD
PhysicalElement.Position
PhysicalElement.Rotation
PhysicalElement.QuaternionRotation
PhysicalElement.Matrix
PhysicalElement.ForwardVector
PhysicalElement.RightVector
PhysicalElement.UpVector
PhysicalElement.Velocity
PhysicalElement.AngularVelocity
PhysicalElement.AngularQuaternionVelocity
PhysicalElement.ToAttached
PhysicalElement.IsAttached
PhysicalElement.IsWithinCollisionShape(CollisionShape)
PhysicalElement.IsWithinMarker(SharedMarker)
PhysicalElement.AttachTo(PhysicalElement, Matrix4x4)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Vector3)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Quaternion)
PhysicalElement.AttachTo(PhysicalElement)
PhysicalElement.Detach()
PhysicalElement.Offset
PhysicalElement.GetWithinRange(Vector3, Single, String)
PhysicalElement.FaceElement(PhysicalElement)
PhysicalElement.OnClicked
PhysicalElement.OnModelChange
PhysicalElement.OnStartSync
PhysicalElement.OnStopSync
PhysicalElement.OnStreamIn
PhysicalElement.OnStreamOut
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.GameWorld
Assembly: SlipeShared.dll
Syntax
public class SharedWater : PhysicalElement

Constructors

| Improve this Doc View Source

SharedWater(Vector3, Vector3, Vector3, Boolean)

Creates a body of water from 3 corners. Order: SouthWest -> SouthEast -> NorthWest

Declaration
public SharedWater(Vector3 southWest, Vector3 southEast, Vector3 northWest, bool shallow = false)
Parameters
Type Name Description
Vector3 southWest
Vector3 southEast
Vector3 northWest
Boolean shallow
| Improve this Doc View Source

SharedWater(Vector3, Vector3, Vector3, Vector3, Boolean)

Creates a body of water from 4 corners. Order: SouthWest -> SouthEast -> NorthWest -> NorthEast

Declaration
public SharedWater(Vector3 southWest, Vector3 southEast, Vector3 northWest, Vector3 northEast, bool shallow = false)
Parameters
Type Name Description
Vector3 southWest
Vector3 southEast
Vector3 northWest
Vector3 northEast
Boolean shallow

Properties

| Improve this Doc View Source

Level

Get the level of this water element

Declaration
public float Level { set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

GetVertexPosition(Int32)

Gets the world position of a vertex (i.e. corner) of a water area. Follow the order SW, SE, NW, NE

Declaration
public Vector3 GetVertexPosition(int vertexIndex)
Parameters
Type Name Description
Int32 vertexIndex
Returns
Type Description
Vector3
| Improve this Doc View Source

SetVertexPosition(Int32, Vector3)

Sets the water position of a specific index follow the order SW, SE, NW, NE

Declaration
public bool SetVertexPosition(int vertexIndex, Vector3 position)
Parameters
Type Name Description
Int32 vertexIndex
Vector3 position
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX