WWeapon - lnx00/Lmaobox-Library GitHub Wiki

lnxLib.TF2.WWeapon

Wrapper for the weapon entity. Inherits from WEntity.

Functions

  • .FromEntity(entity) Creates a WWeapon from a given native Entity.

Methods

  • :GetOwner() Returns the owner entity of the weapon.
  • :GetDefIndex() Returns the item definition index.
  • :GetNextPrimaryAttack() Returns the time when the next primary attack is possible.
  • :GetChargeBeginTime() Returns when the weapon started charging (Huntsman, Sticky launcher).
  • :GetChargedDamage() Returns the charges damage (Sniper rifle).
  • :GetProjectileInfo() Returns the projectile speed and gravity of the weapon (if available).