Class Weapon
- Namespace
- SharpPluginLoader.Core.Weapons
- Assembly
- SharpPluginLoader.Core.dll
Represents an instance of a uWeapon class
public class Weapon : Model
- Inheritance
-
Weapon
- Inherited Members
Constructors
Weapon()
public Weapon()
Weapon(nint)
public Weapon(nint instance)
Parameters
instance
nint
Properties
Holder
Gets the holder of the weapon if it has one
public Entity? Holder { get; }
Property Value
Type
Gets the type of the weapon
public WeaponType Type { get; }
Property Value
Methods
RegisterObjCollision(Resource, uint)
Registers the given rObjCollision (.col file) for the weapon. This col can then be called by an lmt.
public void RegisterObjCollision(Resource objCollision, uint index)
Parameters
objCollision
ResourceThe col to register
index
uintThe index in which to register the col file. Must be less than 8