3586
Modification Help / Re: Script-Syntax-Error that I can't figure out
« on: July 27, 2014, 03:44:32 PM »No it doen't, the first method is completely fine.Code: [Select]This won't work, it needs to be likeif(%obj.getMountedImage(1).getName() $= "Infantry_PlateMountedImage")
if(getWord(%pos,2) < getWord(%obj.getWorldBoxCenter(),2) - 3.3*getWord(%obj.getScale(),2))
%damage *= 0.85;Code: [Select]if(%obj.getMountedImage(1).getName() $= "Infantry_PlateMountedImage")
{
if(getWord(%pos,2) < getWord(%obj.getWorldBoxCenter(),2) - 3.3*getWord(%obj.getScale(),2))
%damage *= 0.85;
}
Though this code is very... questionable. You could simplify it a lot.

