346
Help / Re: Unlimited Mining forget Up
« on: April 11, 2011, 01:03:14 AM »
I have all of that.
Downloaded, and enabled.
Downloaded, and enabled.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Try modding some other stuff like the onpickaxehit events.I know how to do that, and have before.
registerInputEvent("fxDTSBrick","onTorchHit","Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "MiniGame MiniGame" TAB "Owner(Player) Player" TAB "Owner(Client) GameConnection",1);Same problem.
function fxDTSBrick::onTorchHit(%obj,%client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.Player;
$InputTarget_["Client"] = %client;
if(%client.minigame == %obj.getGroup().client.minigame)
{
$InputTarget_["MiniGame"] = %obj.getGroup().client.minigame;
}
$InputTarget_["Owner(Player)"] = %obj.getGroup().client.Player;
$InputTarget_["Owner(Client)"] = %obj.getGroup().client;
%obj.processInputEvent("onTorchHit",%client);
}
registerInputEvent(fxDTSBrick,onTorchHit,"Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "Minigame Minigame");I've tried using the projectile instead of the image, and onCollision, instead of onHitObject.
function TorchjWeaponImage::onHitObject(%this,%obj,%slot,%col,%pos,%normal,%shotVec,%crit)
{
parent::onHitObject(%this,%obj,%slot,%col,%pos,%normal,%shotVec,%crit);
if(%col.getClassName() $= "fxDTSBrick")
{
$InputTarget_["Self"] = %col;
$InputTarget_["Player"] = %obj.client.player;
$InputTarget_["Client"] = %obj.client;
if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.client);
}
else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.client))
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
}
else
{
$InputTarget_["MiniGame"] = 0;
}
}
%col.processInputEvent(onTorchHit,%obj.client);
}
}