Class WorldObject
Class representing an object in the GTA world
Inherited Members
Namespace: Slipe.Client.GameWorld
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Object)]
public class WorldObject : SharedWorldObject
Constructors
| Improve this Doc View SourceWorldObject(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 |
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 SourceAccuracy
Get and set the accuracy of the object
Declaration
public float Accuracy { get; set; }
Property Value
Type | Description |
---|---|
Single |
AirResistance
Get and set the air resistance of the object
Declaration
public float AirResistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
Breakable
Get and set if this object should be breakable
Declaration
public bool Breakable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Buoyancy
Get and set the buoyancy of the object
Declaration
public float Buoyancy { get; set; }
Property Value
Type | Description |
---|---|
Single |
CenterOfMass
Get and set the center of mass of the object
Declaration
public Vector3 CenterOfMass { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Elasticity
Get and set the elasticity of the object
Declaration
public float Elasticity { get; set; }
Property Value
Type | Description |
---|---|
Single |
Mass
Get the mass of this world object
Declaration
public float Mass { get; set; }
Property Value
Type | Description |
---|---|
Single |
Respawns
Set if this object should respawn
Declaration
public bool Respawns { set; }
Property Value
Type | Description |
---|---|
Boolean |
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 SourceBreak()
Break this object
Declaration
public void Break()
Respawn()
Respawn this object
Declaration
public void Respawn()
Events
| Improve this Doc View SourceOnBreak
Declaration
public event WorldObject.OnBreakHandler OnBreak
Event Type
Type | Description |
---|---|
WorldObject.OnBreakHandler |
OnDamage
Declaration
public event WorldObject.OnDamageHandler OnDamage
Event Type
Type | Description |
---|---|
WorldObject.OnDamageHandler |
OnExplosion
Declaration
public event WorldObject.OnExplosionHandler OnExplosion
Event Type
Type | Description |
---|---|
WorldObject.OnExplosionHandler |