Author Topic: Projectile detection  (Read 1700 times)

Im gonna make an event that could be use with a server by Cca, and I need to know how to detect a projectile hitting a brick. How do I do this?


Umm


onProjectileHit?

Forum name: Coding Help

EDIT: Also, it's a specific projectile I'm wanting to detect.
« Last Edit: November 01, 2010, 09:15:03 PM by Club559 »



Read the edit
I don't know its parameters -- but you can do this:
package a
{
    function fxDTSBrick::onProjectileHit(%this, %a, %b, %c, %d, %e)
    {
        echo("A: "@ %a.getClassName());
        echo("B: "@ %b.getClassName());
        echo("C: "@ %c.getClassName());
        echo("D: "@ %d.getClassName());
        echo("E: "@ %e.getClassName());
        parent::onProjectileHit(%this, %a, %b, %c, %d, %e);
    }
};