This is for the army men mod, what I wanted is to have a primary and secondary weapon for each player type, and have the person key bind them. Then when they press it in game they take it out.
I'm doing this because I don't want to release lots of weapons separately that do the same thing as the blockland weapons. Like this they'll just come with the player type, and won't spam up the item list.
Here's the code I put in at the end of the army man soldier player type. (the datablock is just soldier for now, and the command gun will be changed to "primary")
function servercmdgun(%client)
{
if(%client.player.dataBlock $= "soldierArmor")
{
%client.player.mountImage(ArmyManMP40Image,$RightHandSlot);
%client.player.playThread(0,armreadyright);
}
else
{
}
};
And it obviously doesn't work because the player type won't show up in the menu. Any help?
Also, is it possible to do a colorshift for the weapon so that it changes to whatever color your body color is?