WeaponDescriptor Class

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "T:Rage.WeaponDescriptor"]

Inheritance Hierarchy

SystemObject
  RageWeaponDescriptor

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public sealed class WeaponDescriptor : IEquatable<WeaponDescriptor>

The WeaponDescriptor type exposes the following members.

Constructors

  NameDescription
Public methodWeaponDescriptor
Initializes a new instance of the WeaponDescriptor class
Top
Properties

  NameDescription
Public propertyAmmo
Gets the amount of ammo available for this weapon.
Public propertyAsset
Gets the asset of this weapon.
Public propertyHash
Gets the hash of this weapon.
Public propertyLoadedAmmo
Gets the amount of ammo currently in this weapon.
Public propertyMagazineSize
Gets the amount of ammo this weapon will have in its magazine after reloading.
Public propertyMaximumAmmo
Gets the maximum amount of ammo this weapon can hold.
Public propertyPed
Gets the owning Ped of this weapon.
Top
Methods

  NameDescription
Public methodDrop
Drops this weapon. If the weapon is in the owning Ped's hand, it will be physically dropped; otherwise, it will be placed on the ground in front of the Ped.
Public methodDropToGround
Drops this weapon. The weapon will be placed on the ground in front of the Ped.
Public methodEquals
Indicates whether the current WeaponDescriptor is equal to another WeaponDescriptor.
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Public operatorStatic member(String to WeaponDescriptor)
Public operatorStatic member(WeaponAsset to WeaponDescriptor)
Public operatorStatic member(WeaponHash to WeaponDescriptor)
Public operatorStatic memberInequality
Top
See Also

Reference