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?


So can I do something like:



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

Ok, thank you