Show / Hide Table of Contents

Class WorldObject

Class representing an object in the GTA world

Inheritance
Object
Element
PhysicalElement
SharedWorldObject
WorldObject
Inherited Members
SharedWorldObject.Scale
SharedWorldObject.Move(Int32, Vector3, Vector3, EasingFunction)
SharedWorldObject.Move(Int32, Vector3)
SharedWorldObject.Stop()
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.Client.GameWorld
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Object)]
public class WorldObject : SharedWorldObject

Constructors

| Improve this Doc View Source

WorldObject(Int32, Vector3)

Create a world object at a specific position

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

WorldObject(Int32, Vector3, Vector3, Boolean)

Create a world object using all parameters

Declaration
public WorldObject(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

Accuracy

Get and set the accuracy of the object

Declaration
public float Accuracy { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

AirResistance

Get and set the air resistance of the object

Declaration
public float AirResistance { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

Breakable

Get and set if this object should be breakable

Declaration
public bool Breakable { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Buoyancy

Get and set the buoyancy of the object

Declaration
public float Buoyancy { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

CenterOfMass

Get and set the center of mass of the object

Declaration
public Vector3 CenterOfMass { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Elasticity

Get and set the elasticity of the object

Declaration
public float Elasticity { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

Mass

Get the mass of this world object

Declaration
public float Mass { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

Respawns

Set if this object should respawn

Declaration
public bool Respawns { set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

TurnMass

Get and set the turning mass of the object

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

Methods

| Improve this Doc View Source

Break()

Break this object

Declaration
public void Break()
| Improve this Doc View Source

Respawn()

Respawn this object

Declaration
public void Respawn()

Events

| Improve this Doc View Source

OnBreak

Declaration
public event WorldObject.OnBreakHandler OnBreak
Event Type
Type Description
WorldObject.OnBreakHandler
| Improve this Doc View Source

OnDamage

Declaration
public event WorldObject.OnDamageHandler OnDamage
Event Type
Type Description
WorldObject.OnDamageHandler
| Improve this Doc View Source

OnExplosion

Declaration
public event WorldObject.OnExplosionHandler OnExplosion
Event Type
Type Description
WorldObject.OnExplosionHandler

Extension Methods

ElementExtensions.GetBoundingBox(PhysicalElement)
ElementExtensions.GetDistanceFromCentreOfMassToBaseOfModel(PhysicalElement)
ElementExtensions.GetRadius(PhysicalElement)
ElementExtensions.SetCollidableWith(PhysicalElement, PhysicalElement, Boolean)
ElementExtensions.IsCollidableWith(PhysicalElement, PhysicalElement)
ElementExtensions.IsLocal(PhysicalElement)
ElementExtensions.IsOnScreen(PhysicalElement)
ElementExtensions.SetStreamable(PhysicalElement, Boolean)
ElementExtensions.IsStreamable(PhysicalElement)
ElementExtensions.IsStreamedIn(PhysicalElement)
ElementExtensions.IsSyncer(PhysicalElement)
ElementExtensions.IsWaitingForGroundToLoad(PhysicalElement)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX