check grenade owner
Is it possible to get the grenade owner in FM_SetModel forward so it will set specific world model only if the owner is in specific team.
PHP Code:
|
Re: check grenade owner
pev_owner ?
|
Re: check grenade owner
The entity's owner is not yet set in SetModel forward. You could set entity's nextthink to get_gametime() + 0.01 or use a single StartFrame and check the owner there.
|
Re: check grenade owner
Can you show me the StarFrame way ?
|
Re: check grenade owner
Code:
|
Re: check grenade owner
Quote:
|
Re: check grenade owner
Yeap, that worked hleV, thanks.
|
Re: check grenade owner
pev_owner is enough if you need to get the owner when you throw a grenade.
|
Re: check grenade owner
Quote:
|
Re: check grenade owner
Yes, to be more precise, SetModel with "models/w_hegrenade.mdl" is called :
|
| All times are GMT -4. The time now is 02:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.