Variable from weapon to entity

Is there any way in lua to acces weapon’s variable by entity? For example I have a variable “isFiring” and I want entity to know is specified player firing or not. How can I acces “isFiring” by entity?

WeaponEntity.isFiring

So can I do something like:



self.Entity:GetOwner():GetWeapon().isFiring


??

Yes. Also, you can just use self, and it’s GetActiveWeapon().

Ok, thank you