Show / Hide Table of Contents

Class SharedWorldObject

Class representing static, 3D models in the GTA world.

Inheritance
Object
Element
PhysicalElement
SharedWorldObject
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 SharedWorldObject : PhysicalElement

Constructors

| Improve this Doc View Source

SharedWorldObject(Int32, Vector3)

Creates a SharedWorldObject from a model ID and a position Vector3

Declaration
public SharedWorldObject(int model, Vector3 position)
Parameters
Type Name Description
Int32 model
Vector3 position
| Improve this Doc View Source

SharedWorldObject(Int32, Vector3, Vector3, Boolean)

Creates a SharedWorldObject from all CreateObject variables

Declaration
public SharedWorldObject(int model, Vector3 position, Vector3 rotation, bool isLowLOD = false)
Parameters
Type Name Description
Int32 model
Vector3 position
Vector3 rotation
Boolean isLowLOD

Properties

| Improve this Doc View Source

Scale

Gets and sets the scale of the WorldObject

Declaration
public Vector3 Scale { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

Move(Int32, Vector3)

Moves a WorldObject linearly to a position in a certain time

Declaration
public bool Move(int milliseconds, Vector3 position)
Parameters
Type Name Description
Int32 milliseconds
Vector3 position
Returns
Type Description
Boolean
| Improve this Doc View Source

Move(Int32, Vector3, Vector3, EasingFunction)

Moves a WorldObject to a position and rotation during a period, using an easing function

Declaration
public bool Move(int milliseconds, Vector3 position, Vector3 rotationOffset, EasingFunction easingFunction)
Parameters
Type Name Description
Int32 milliseconds
Vector3 position
Vector3 rotationOffset
EasingFunction easingFunction
Returns
Type Description
Boolean
| Improve this Doc View Source

Stop()

Stops a WorldObject from moving

Declaration
public bool Stop()
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX