Class Entity
Inheritance
System.Object
Entity
Inherited Members
AltV.Net.Shared.Elements.Entities.SharedBaseObject.SetMetaData(Dictionary<, >)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.dll
Syntax
public abstract class Entity : WorldObject, IInternalBaseObject, IEntity, ISharedEntity, IWorldObject, ISharedWorldObject, IBaseObject, ISharedBaseObject, INative
Constructors
|
Improve this Doc
View Source
Entity(ICore, IntPtr, BaseObjectType, UInt32)
Declaration
protected Entity(ICore core, IntPtr nativePointer, BaseObjectType type, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
nativePointer |
|
BaseObjectType |
type |
|
System.UInt32 |
id |
|
Properties
|
Improve this Doc
View Source
Collision
Declaration
public bool Collision { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
EntityNativePointer
Declaration
public IntPtr EntityNativePointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
|
Improve this Doc
View Source
Frozen
Declaration
public bool Frozen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Model
Declaration
public abstract uint Model { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
NativePointer
Declaration
public override IntPtr NativePointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Overrides
|
Improve this Doc
View Source
NetworkOwner
Declaration
public IPlayer NetworkOwner { get; }
Property Value
|
Improve this Doc
View Source
Rotation
Declaration
public Rotation Rotation { get; set; }
Property Value
Type |
Description |
Rotation |
|
|
Improve this Doc
View Source
Streamed
Declaration
public bool Streamed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
StreamingDistance
Declaration
public uint StreamingDistance { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Timestamp
Declaration
public uint Timestamp { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Visible
Declaration
public bool Visible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AttachToEntity(IEntity, String, String, Position, Rotation, Boolean, Boolean)
Declaration
public void AttachToEntity(IEntity entity, string otherBone, string ownBone, Position position, Rotation rotation, bool collision, bool noFixedRotation)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
System.String |
otherBone |
|
System.String |
ownBone |
|
Position |
position |
|
Rotation |
rotation |
|
System.Boolean |
collision |
|
System.Boolean |
noFixedRotation |
|
|
Improve this Doc
View Source
AttachToEntity(IEntity, UInt16, UInt16, Position, Rotation, Boolean, Boolean)
Declaration
public void AttachToEntity(IEntity entity, ushort otherBoneId, ushort ownBoneId, Position position, Rotation rotation, bool collision, bool noFixedRotation)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
System.UInt16 |
otherBoneId |
|
System.UInt16 |
ownBoneId |
|
Position |
position |
|
Rotation |
rotation |
|
System.Boolean |
collision |
|
System.Boolean |
noFixedRotation |
|
|
Improve this Doc
View Source
CheckIfEntityExists()
Declaration
public override void CheckIfEntityExists()
Overrides
|
Improve this Doc
View Source
Declaration
public void DeleteStreamSyncedMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
|
Improve this Doc
View Source
Detach()
Declaration
|
Improve this Doc
View Source
Declaration
public void GetStreamSyncedMetaData(string key, out MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
Declaration
public bool GetStreamSyncedMetaData<T>(string key, out T result)
Parameters
Type |
Name |
Description |
System.String |
key |
|
T |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public bool HasStreamSyncedMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ResetNetworkOwner()
Declaration
public void ResetNetworkOwner()
|
Improve this Doc
View Source
SetCached(IntPtr)
Declaration
public override void SetCached(IntPtr cachedEntity)
Parameters
Type |
Name |
Description |
System.IntPtr |
cachedEntity |
|
Overrides
|
Improve this Doc
View Source
SetNetworkOwner(IPlayer, Boolean)
Declaration
public void SetNetworkOwner(IPlayer player, bool disableMigration)
Parameters
Type |
Name |
Description |
IPlayer |
player |
|
System.Boolean |
disableMigration |
|
|
Improve this Doc
View Source
Declaration
public void SetStreamSyncedMetaData(Dictionary<string, object> metaData)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
metaData |
|
|
Improve this Doc
View Source
Declaration
public void SetStreamSyncedMetaData(string key, in MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
Declaration
public void SetStreamSyncedMetaData(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
ISharedEntity.NetworkOwner
Declaration
ISharedPlayer ISharedEntity.NetworkOwner { get; }
Returns
Implements