Player
Namespace: SharpPluginLoader.Core.Entities
public class Player : Entity
Inheritance Object → NativeWrapper → MtObject → Model → Entity → Player
Properties
SingletonInstance
The sPlayer singleton instance
public static nint SingletonInstance { get; }
Property Value
MainPlayer
The main player
public static Player MainPlayer { get; }
Property Value
CurrentWeapon
The currently equipped weapon
public Weapon CurrentWeapon { get; }
Property Value
CurrentWeaponType
The currently equipped weapon type
public WeaponType CurrentWeaponType { get; }
Property Value
CollisionComponent
Gets the entity's collision component
public CollisionComponent CollisionComponent { get; }
Property Value
ActionController
The entity's action controller
public ActionController ActionController { get; }
Property Value
Position
The position of the model
public MtVector3& Position { get; }
Property Value
Size
The size of the model
public MtVector3& Size { get; }
Property Value
CollisionPosition
The position of the model's collision box
public MtVector3& CollisionPosition { get; }
Property Value
Rotation
The rotation of the model
public MtQuaternion& Rotation { get; }
Property Value
Forward
The model's forward vector
public MtVector3 Forward { get; }
Property Value
AnimationFrame
The current frame of the model's current animation
public float AnimationFrame { get; set; }
Property Value
MaxAnimationFrame
The frame count of the model's current animation
public float MaxAnimationFrame { get; set; }
Property Value
AnimationSpeed
The speed of the model's current animation. Note, this value gets set every frame.
public float AnimationSpeed { get; set; }
Property Value
CurrentAnimation
Gets the current animation of the model
public AnimationId& CurrentAnimation { get; }
Property Value
AnimationLayer
The model's animation component
public AnimationLayerComponent AnimationLayer { get; }
Property Value
MotionLists
The model's motion lists.
public IEnumerable<MotionList> MotionLists { get; }
Property Value
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
Constructors
Player(IntPtr)
public Player(nint instance)
Parameters
instance
IntPtr
Player()
public Player()
Methods
CreateShell(UInt32, MtVector3, Nullable<MtVector3>)
public void CreateShell(uint index, MtVector3 target, Nullable<MtVector3> origin)
Parameters
index
UInt32
target
MtVector3
origin
Nullable<MtVector3>
CreateShell(ShellParamList, UInt32, MtVector3, Nullable<MtVector3>)
public void CreateShell(ShellParamList shll, uint index, MtVector3 target, Nullable<MtVector3> origin)
Parameters
shll
ShellParamList
index
UInt32
target
MtVector3
origin
Nullable<MtVector3>
CreateShell(ShellParam, MtVector3, Nullable<MtVector3>)
public void CreateShell(ShellParam shell, MtVector3 target, Nullable<MtVector3> origin)
Parameters
shell
ShellParam
target
MtVector3
origin
Nullable<MtVector3>
RegisterMbd(Resource, UInt32)
public void RegisterMbd(Resource mbd, uint index)
Parameters
mbd
Resource
index
UInt32