function Armor::onTrigger(%this, %player, %slot, %val)
{
if(%player.getMountedImage(0) $= Mac10Image.getID() && %slot $= 4 && %val)
{
if(!%obj.isMounted())
%player.mountImage(IronSightMac10Image,0);
}
else if(%player.getMountedImage(0) $= IronSightMac10Image.getID() && %slot $= 4 && %val)
{
%player.mountImage(Mac10Image,0);
}
Parent::onTrigger(%this, %player, %slot, %val);
}
I am trying to make it so when you get out of a vehicle, you will not go to the iron sights, since both the gun and vehicle use the jet button. And yes, i packaged it, but it isn't included here.