Using pfn_touch
Is it possible to use this to check if to players is tuching eachother?
And how do i use it? |
Code:
|
Would this work if a player attacked another teammate with a knife?
|
No... what do you need knifeness for so badly?
|
Bah, nothing.. I'll just go by my original idea.
|
register_touch is better.
|
I really dont want to registrer an event, id rather use a native which tells if they're touching eachother at the moment its called
|
It is not registering an event.
Code:
It fuctions by calling the function you specify when two objects of the provided classname touch. It is exactly like pfn_touch, but instead of seeing if the classnames are what you want in SMALL, it does it in the module, where it is much faster. The end result is you get when two SPECIFIC things touch, like two players, so you do not have to compare classnames all the time and waste CPU. |
| All times are GMT -4. The time now is 16:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.