Table of Contents

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

Entity

Type

Gets the type of the weapon

public WeaponType Type { get; }

Property Value

WeaponType

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 Resource

The col to register

index uint

The index in which to register the col file. Must be less than 8

Exceptions

ArgumentOutOfRangeException