register_touch toucher question
If i have many classes, how can I set a wildcard for register_touch instead of:
PHP Code:
|
Re: register_touch toucher question
Quote:
PHP Code:
|
Re: register_touch toucher question
I would do like this...
PHP Code:
|
Re: register_touch toucher question
I forgot to say many custom entity classes, I need to hook only the custom classes touch.
Is FM_Touch for any class? A for looks like a alternative to wildcard, I'll use it if there's no wildcard variant, thanks :) |
Re: register_touch toucher question
Sumthin' like this ?
Code:
|
Re: register_touch toucher question
Something like that, but now my novice brain's got some questions:
Is there a value for the 1st parameter of register_touch that does the same thing as xPaw's code? (instead of "*" somethign like "*sametype_class") If not, witch one of this versions has a better performance? PHP Code:
PHP Code:
|
Re: register_touch toucher question
Will
register_touch( "*", "player", "sametype_touch" ) register every touch player makes with everything around him ? |
Re: register_touch toucher question
Yup, that's what I understand from here:
http://www.amxmodx.org/funcwiki.php?go=func&id=463 |
| All times are GMT -4. The time now is 07:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.