Class Rope
Inherited Members
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class Rope : PoolObject, INativeValue, IDeletable, IExistable
Constructors
| Improve this Doc View SourceRope(Int32)
Declaration
public Rope(int handle)
Parameters
Type | Name | Description |
---|---|---|
Int32 | handle |
Properties
| Improve this Doc View SourceLength
Gets or sets the length of this Rope.
Declaration
public float Length { get; set; }
Property Value
Type | Description |
---|---|
Single |
VertexCount
Gets the number of vertices of this Rope.
Declaration
public int VertexCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceActivatePhysics()
Activates physics interactions for this Rope.
Declaration
public void ActivatePhysics()
Attach(Entity)
Declaration
public void Attach(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to attach. |
Attach(Entity, Vector3)
Declaration
public void Attach(Entity entity, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to attach. |
Vector3 | position | The position in world coordinates to attach to. |
Connect(Entity, Entity, Single)
Declaration
public void Connect(Entity entity1, Entity entity2, float length)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity1 | The first entity to attach. |
Entity | entity2 | The second entity to attach. |
Single | length | The rope length. |
Connect(Entity, Vector3, Entity, Vector3, Single)
Declaration
public void Connect(Entity entity1, Vector3 position1, Entity entity2, Vector3 position2, float length)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity1 | The first entity to attach. |
Vector3 | position1 | The position in world coordinates to attach the first entity to. |
Entity | entity2 | The second entity to attach. |
Vector3 | position2 | The position in world coordinates to attach the second entity to. |
Single | length | The rope length. |
Delete()
Destroys this Rope.
Declaration
public override void Delete()
Overrides
| Improve this Doc View SourceDetach(Entity)
Declaration
public void Detach(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to detach. |
Equals(Object)
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 Rope exists.
Declaration
public override bool Exists()
Returns
Type | Description |
---|---|
Boolean | true if this Rope exists; otherwise, false. |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceGetVertexCoord(Int32)
Gets the world coordinates of a single vertex of this Rope.
Declaration
public Vector3 GetVertexCoord(int vertex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | vertex | The index of the vertex. |
Returns
Type | Description |
---|---|
Vector3 | The position of the vertex in world coordinates. |
PinVertex(Int32, Vector3)
Pin a vertex of this Rope to a position
.
Declaration
public void PinVertex(int vertex, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Int32 | vertex | The index of the vertex. |
Vector3 | position | The position in world coordinates to pin to. |
UnpinVertex(Int32)
Unpin a vertex of this Rope.
Declaration
public void UnpinVertex(int vertex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | vertex | The index of the vertex. |
Operators
| Improve this Doc View SourceEquality(Rope, Rope)
Determines if two Ropes refer to the same rope.
Declaration
public static bool operator ==(Rope left, Rope right)
Parameters
Type | Name | Description |
---|---|---|
Rope | left | The left Rope. |
Rope | right | The right Rope. |
Returns
Type | Description |
---|---|
Boolean | true if |
Implicit(Rope to InputArgument)
Converts a Rope to a native input argument.
Declaration
public static implicit operator InputArgument(Rope value)
Parameters
Type | Name | Description |
---|---|---|
Rope | value |
Returns
Type | Description |
---|---|
InputArgument |
Inequality(Rope, Rope)
Determines if two Ropes don't refer to the same rope.
Declaration
public static bool operator !=(Rope left, Rope right)
Parameters
Type | Name | Description |
---|---|---|
Rope | left | The left Rope. |
Rope | right | The right Rope. |
Returns
Type | Description |
---|---|
Boolean | true if |