Entity touch
I have created a zone (a cube/box) on fun_allinone map all over the spawn area and fwBoxTouch function do not get triggered by any player touching it.
But as soon all of the env_beam's gets triggered/toggled on (they're inside of this cube), then fwBoxTouch is somehow working as it should. My questions are: Why isn't it working without the beams triggering it? And how to get it to work as it should without env_beam entitites has to trigger it to work? PS. I have to use MOVETYPE_NONE and SOLID_TRIGGER since it's supposed to act like a trigger_multiple entity. Since the doors are within the cube as well. I have figured out if any other value beside of MOVETYPE_NONE, when one of the doors gets triggered, it will kill/move the box away from it's position. I have taken a look at the env_beam's keys and keyvalues to try figuring out what's triggering it to work, my guess was pev->dmg, but set_pev(entity, pev_dmg, <any value here>) did not work. So, I'm out of ideas. Code:
|
Re: Entity touch
Replace:
PHP Code:
PHP Code:
Another way you can move: PHP Code:
PHP Code:
|
Re: Entity touch
That won't fix it. But it's replaced now.
|
Re: Entity touch
Question, what build of amx do you use ?
|
Re: Entity touch
This code works for me:
PHP Code:
|
All times are GMT -4. The time now is 16:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.