FM_Touch help me?
can someone explain me but suffers FM Touch?
|
Re: FM_Touch help me?
"Touch" is called whenever an entities touchs another entity (or world itself).
It has 2 arguments: 1) "pentTouched" which is the touched entity 2) "pentOther" which is the toucher, this one can be the world Whenever "touch" is called, you must guess that 2 touch forwards will be called. The second callback will have the args flipped. If ent1 touches ent2 and ent2 is not world: Touch(ent1, ent2) Touch(ent2, ent1) Use register_touch instead of using Fakemeta's FM_Touch because you'll hook many touch callback, when you'll just check for an specific entity touch. (if it's the case) |
Re: FM_Touch help me?
can u post a list with entities and also an example :D ?
|
Re: FM_Touch help me?
Quote:
|
Re: FM_Touch help me?
Quote:
PHP Code:
"ent" is doing fusion with the "touched" |
Re: FM_Touch help me?
What fusion? What do you want to do? Also as it's been said use register_touch instead, as you can directly pass the classnames in the parameters.
|
Re: FM_Touch help me?
Quote:
|
Re: FM_Touch help me?
About touch i have some question about it.
i have 8 custom and different entities that can touch and i need to hook their touch. Most of them are destroyed on touch. what is the best ? 8 register_touch or hooking FM_Touch ? |
Re: FM_Touch help me?
Just hook register_touch 8 times, you will still save many calls because FM_Touch is called for ANY interaction between ANY two entities in the world.
Another option is to hook Ham_Touch with the toucher classname. |
Re: FM_Touch help me?
register_touch > Ham_Touch > FM_Touch
Keep in mind the usage of register_touch beside the others. |
| All times are GMT -4. The time now is 09:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.