Class AnimatedBuilding
Implements
Inherited Members
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public class AnimatedBuilding : IExistable
Properties
| Improve this Doc View SourceHandle
The handle of this AnimatedBuilding. This property is provided mainly for safer instance handling, but this is also used for equality comparison.
Declaration
public int Handle { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Matrix
Gets this AnimatedBuildings matrix which stores position and rotation information.
Declaration
public Matrix Matrix { get; }
Property Value
| Type | Description |
|---|---|
| Matrix |
MemoryAddress
Gets the memory address where the AnimatedBuilding is stored in memory.
Declaration
public IntPtr MemoryAddress { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
Model
Gets the model of this AnimatedBuilding.
Declaration
public Model Model { get; }
Property Value
| Type | Description |
|---|---|
| Model |
Position
Gets or sets the position of this AnimatedBuilding.
Declaration
public Vector3 Position { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 | The position in world space. |
Quaternion
Gets the quaternion of this AnimatedBuilding.
Declaration
public Quaternion Quaternion { get; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
Rotation
Gets the rotation of this AnimatedBuilding.
Declaration
public Vector3 Rotation { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 | The yaw, pitch, roll rotation values in degree. |
Methods
| Improve this Doc View SourceEquals(Object)
Determines if an Object refers to the same entity as this AnimatedBuilding.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | The Object to check. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the |
Overrides
| Improve this Doc View SourceExists()
Determines if this Building exists.
Declaration
public bool Exists()
Returns
| Type | Description |
|---|---|
| Boolean | true if this Building exists; otherwise, false. |
FromHandle(Int32)
Creates a new instance of an AnimatedBuilding from the given handle.
Declaration
public static AnimatedBuilding FromHandle(int handle)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | handle | The building handle. |
Returns
| Type | Description |
|---|---|
| AnimatedBuilding | Returns a AnimatedBuilding if this handle corresponds to a AnimatedBuilding.
Returns null if no AnimatedBuilding exists this the specified |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
Operators
| Improve this Doc View SourceEquality(AnimatedBuilding, AnimatedBuilding)
Determines if two AnimatedBuildings refer to the same entity.
Declaration
public static bool operator ==(AnimatedBuilding left, AnimatedBuilding right)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimatedBuilding | left | The left AnimatedBuilding. |
| AnimatedBuilding | right | The right AnimatedBuilding. |
Returns
| Type | Description |
|---|---|
| Boolean | true if |
Inequality(AnimatedBuilding, AnimatedBuilding)
Determines if two AnimatedBuildings don't refer to the same entity.
Declaration
public static bool operator !=(AnimatedBuilding left, AnimatedBuilding right)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimatedBuilding | left | The left AnimatedBuilding. |
| AnimatedBuilding | right | The right AnimatedBuilding. |
Returns
| Type | Description |
|---|---|
| Boolean | true if |