he should've asked me
registerInputEvent(fxDTSBrick, "onDrill", "Self fxDTSBrick Player Player Client GameConnection MiniGame MiniGame");
function drillProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
Parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);
// check to see if the thing we just hit is a brick
if(%col.getType() & ($TypeMasks::FxBrickObjectType | $TypeMasks::FxBrickAlwaysObjectType))
{
// set the event parameters up
$InputTarget_["Self"] = %col;
$InputTarget_["Player"] = %obj.sourceObject;
$InputTarget_["Client"] = %obj.sourceObject.client;
if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.sourceObject.client);
}
else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.sourceObject.client))
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
else
$InputTarget_["MiniGame"] = 0;
}
//process the event
%col.processInputEvent("onDrill", %obj.sourceObject.client);
}
}
put that at the bottom of Weapon_Power_Drill.cs and magically you will have input events named 'onDrill'