Well, basically like this:
There are 5 players on the server.
Player 1 has a 'Guns Akimbo' weapon in his hands
Player 1 uses the disguise thing with argument 'Bow'
Player 1 including everybody else now see the weapon in his hands as a Bow
Player 1 shoots the weapon
-> It turns into a Guns Akimbo
-> It fires (like it would originally do)
Actually I think I found a solution. Would something like this work?
function disguise(%playerobj,%image)
{
%playerobj.disguised_image = player.getMountedImage(0);
%playerobj.hasImageDisguise = true;
%playerobj.mountImage(%image,0);
}
package SOMETHING
{
function Armor::onTrigger(%bacon,%ham,%milk,%cheese,%and,%other,%args)
{
if(%val && %slot == 0 && %obj.hasImageDisguise)
%playerobj.mountImage(%obj.disguised_image,0);
Parent::onTrigger(%meat,%water,%salad,%and,%spam);
}
};
activatePackage(SOMETHING);