Class WorldObject
World object element
World objects are physical representations of any object in the world.
Assembly: SlipeServer.Server.dll
Syntax
public class WorldObject : Element
Constructors
|
Edit this page
View Source
WorldObject(ObjectModel, Vector3)
Declaration
public WorldObject(ObjectModel model, Vector3 position)
Parameters
|
Edit this page
View Source
WorldObject(ushort, Vector3)
Declaration
public WorldObject(ushort model, Vector3 position)
Parameters
Fields
|
Edit this page
View Source
model
Declaration
Field Value
|
Edit this page
View Source
scale
Declaration
Field Value
Properties
|
Edit this page
View Source
ApproximatedMidMovementPosition
Declaration
public Vector3 ApproximatedMidMovementPosition { get; }
Property Value
|
Edit this page
View Source
ApproximatedMidMovementRotation
Declaration
public Vector3 ApproximatedMidMovementRotation { get; }
Property Value
|
Edit this page
View Source
DoubleSided
Declaration
public bool DoubleSided { get; set; }
Property Value
|
Edit this page
View Source
ElementType
The element type as per MTA's specifications. Multiple C# types can share the same MTA element type.
Declaration
public override ElementType ElementType { get; }
Property Value
Overrides
|
Edit this page
View Source
Health
Declaration
public float Health { get; set; }
Property Value
|
Edit this page
View Source
IsBreakable
Declaration
public bool IsBreakable { get; set; }
Property Value
|
Edit this page
View Source
IsLowLod
Declaration
public bool IsLowLod { get; set; }
Property Value
|
Edit this page
View Source
IsVisibleInAllDimensions
Declaration
public bool IsVisibleInAllDimensions { get; set; }
Property Value
|
Edit this page
View Source
LowLodElement
Declaration
public WorldObject? LowLodElement { get; set; }
Property Value
|
Edit this page
View Source
Model
Declaration
public ushort Model { get; set; }
Property Value
|
Edit this page
View Source
Movement
Declaration
public PositionRotationAnimation? Movement { get; }
Property Value
|
Edit this page
View Source
Scale
Declaration
public Vector3 Scale { get; set; }
Property Value
Methods
|
Edit this page
View Source
AssociateWith(MtaServer)
Declaration
public WorldObject AssociateWith(MtaServer server)
Parameters
Returns
|
Edit this page
View Source
CancelMovement(bool)
Declaration
public void CancelMovement(bool resetPosition = false)
Parameters
Type |
Name |
Description |
bool |
resetPosition |
|
|
Edit this page
View Source
Move(Vector3, Vector3, TimeSpan)
Declaration
public Task Move(Vector3 newPosition, Vector3 deltaRotation, TimeSpan moveTime)
Parameters
Returns
Events
|
Edit this page
View Source
IsVisibleInAllDimensionsChanged
Declaration
public event ElementChangedEventHandler<WorldObject, bool>? IsVisibleInAllDimensionsChanged
Event Type
|
Edit this page
View Source
ModelChanged
Declaration
public event ElementChangedEventHandler<WorldObject, ushort>? ModelChanged
Event Type
|
Edit this page
View Source
Moved
Declaration
public event ElementEventHandler<WorldObject, WorldObjectMovedEventArgs>? Moved
Event Type
|
Edit this page
View Source
MovementCancelled
Declaration
public event ElementEventHandler<WorldObject, WorldObjectMovementCancelledEventArgs>? MovementCancelled
Event Type
|
Edit this page
View Source
ScaleChanged
Declaration
public event ElementChangedEventHandler<WorldObject, Vector3>? ScaleChanged
Event Type
Extension Methods