Using Entities
I was wondering if there was a good way to detect Wether a player was holding an entity ( a weapon box entity i created ), Other then checking models . The current way I am doing it , is by getting the users weapon , and if hes holding a regular weapon then hes not holding mine . which is a pain because I have to compare the 30 weapon types .
|
Re: Using Entities
Try to use entvar's attribute .owner of your entity. But this forces you to scan through all your existing specific weapons.
|
Re: Using Entities
PS. Never use modelindex because it's zeroed as it has been grabbed by a player.
|
Re: Using Entities
Code:
|
Re: Using Entities
Quote:
Ill try that code wilson thanks :wink: |
| All times are GMT -4. The time now is 22:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.