Double Toast:
First I had this:
function ScaleJetRayProjectile::Damage(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%col.setPlayerscale(1 1 1);
if(isObject(%col.client))
%col.client.applyBodyColors();
if(%col.getObjectMount())
%col.getDataBlock().doDismount(%col);
}
}
Console gave me this:
Loading Add-On: Weapon_Scale_Ray
Add-Ons/Weapon_Scale_Ray/Weapon_Scale_Ray.cs Line: 377 - Syntax error.
>>> Some error context, with ## on sides of error halt:
};
function ScaleJetRayImage::onFire(%this,%obj,%slot)
{
^if(%obj.getDamagePercent() < 1.0)
^^%obj.playThread(2, shiftAway);
^Parent::onFire(%this,%obj,%slot);^
}
function ScaleJetRayProjectile::Damage(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
%col.setPlayerscale(1 1 ##1##);
if(isObject(%col.client))
%col.client.applyBodyColors();
if(%col.getObjectMount())
%col.getDataBlock().doDismount(%col);
}
}
>>> Error report complete.