PHP Code:
register_touch( "mafubaphase2", "world", "Mafubaphase2_touch")
The second param should always be
"*" since it will check EVERYTHING touch it. You can choose which thing to do next after depend on what object/thing touch it by checking classname.
PHP Code:
if(!task_exists(ent+9999))
{
set_task(1.0, "removeEntity", ent+9999); //Prevent from touching multiple time
set_task(2.0, "Phase2", pev_owner); //Prevent from touching multiple time
}
pev_owner is not the id of the entity's owner.
pev(ent, pev_owner) is the one.
PHP Code:
@CreateMafubaBeamEntityphase2(100, pev_owner, 1.0, 100);
The 1st param should be the where it
return the entity's id not
set entity's id
The 2nd param is the same problem I said about pev_owner above.
Param 3rd and 4th you are right.
__________________