So when I fire the item, it mounts and unmounts fine, and it does what is inside the onMount and onUnMount functions fine, but in console it tells me "unkown command "onMount" or something like that, but it still does what's inside the function... I don't get it :l
function TorchHImage::onFire(%this,%obj,%slot)
{
%client = %obj.client;
%player = %obj;
if(isObject(%player))
{
if(%player.getMountedImage(1) $= nametoID(TorchImage))
{
%player.unmountImage(1);
serverPlay3D(TorchUseSound,%obj.getTransform());
}
else
{
%player.unmountImage(1);
%player.mountImage(TorchImage,1);
serverPlay3D(TorchUseSound,%obj.getTransform());
}
}
}
function TorchImage::OnMount(%this,%obj,%slot,%client)
{
Parent::OnMount(%this,%obj,%slot,%client);
%obj.client.isWarm = 1;
}
function TorchImage::onUnMount(%this,%obj,%slot,%client)
{
Parent::onUnMount(%this,%obj,%slot,%client);
%obj.client.isWarm = 0;
}
How can I get this error to go away?
Parents. They aren't needed.