asdf
function M4A1Image::onMount(%this,%obj,%slot)
{
Parent::onMount(%this,%obj,%slot);
if(%client.player.getDatablock() $= "PlayerStandardArmor")
{
%obj.pushDatablock(StandardAssaultArmor.getID());
}
else if(%client.player.getDatablock() $= "PlayerMW2Armor")
{
%obj.pushDatablock(MW2AssaultArmor.getID());
}
else
{
%obj.pushDatablock(AssaultArmor.getID());
}
}
Im sorry, but what is wrong with this.
Keep in mind, I'm new to this.