Class Player
- Namespace
- SharpPluginLoader.Core.Entities
- Assembly
- SharpPluginLoader.Core.dll
public class Player : Entity
- Inheritance
-
Player
- Inherited Members
Constructors
Player()
public Player()
Player(nint)
public Player(nint instance)
Parameters
instancenint
Properties
CurrentWeapon
The currently equipped weapon
public Weapon? CurrentWeapon { get; }
Property Value
CurrentWeaponType
The currently equipped weapon type
public WeaponType CurrentWeaponType { get; }
Property Value
Health
The current health of the player
public ref float Health { get; }
Property Value
MainPlayer
The main player
public static Player? MainPlayer { get; }
Property Value
MaxHealth
The maximum health of the player
public ref float MaxHealth { get; }
Property Value
SingletonInstance
The sPlayer singleton instance
public static MtObject SingletonInstance { get; }
Property Value
Methods
CreateShell(ShellParam, Vector3, Vector3?)
Spawns the given shell on the entity
public override void CreateShell(ShellParam shell, Vector3 target, Vector3? origin = null)
Parameters
shellShellParamThe shell to spawn
targetVector3The target position of the shell
originVector3?The origin position of the shell (or null for the entity itself)
CreateShell(ShellParamList, uint, Vector3, Vector3?)
Spawns a shell on the entity from the given shll file
public override void CreateShell(ShellParamList shll, uint index, Vector3 target, Vector3? origin = null)
Parameters
shllShellParamListThe shll file to take the shell from
indexuintThe index of the shell in the entities shell list (shll)
targetVector3The position the shell should travel towards
originVector3?The origin of the shell (or null for the entity itself)
Remarks
Tip: You can load any shll file using GetResource<T>(string, MtDti, LoadFlags)
CreateShell(uint, Vector3, Vector3?)
Spawns a shell on the entity
public override void CreateShell(uint index, Vector3 target, Vector3? origin = null)
Parameters
indexuintThe index of the shell in the entities shell list (shll)
targetVector3The position the shell should travel towards
originVector3?The origin of the shell (or null for the entity itself)
RegisterMbd(Resource, uint)
public void RegisterMbd(Resource mbd, uint index)