AGlass0fMilk said he would work on the script but he hasn't responded since. I'm trying to do it myself but thats going to take a while. I'll just post it here so that if anyone who views this topic can help release the beta.
(Also I figured out how to make the guys build and pick up weapons, but this guy won't build, it has other uses for the building sequences. Although I will make a class specially for building.)
So here's the script(There's 2 other of these that do thesame thing, just different weapons)
function serverCmdPrimary(%client)
{
%player = %client.player;
if(isObject(%player))
{
%player.updateArm(ArmyManM16Image);
%player.mountImage(ArmyManM16Image, 0);
}
}
1 I need that to work only if you're the armymansoldier player type.
And 2 I need it so that when you do activate that function again, the guy takes away the weapon. Right now he only takes it out and leaves it out.
Once I get those 2 pieces of code working, I can release the beta.
Before AGlass0fMilk said he would try and fix it he gave me a code for the soldier so that you can only take out the weapons if you're the armymansoldier class but it never worked. Here's the script:
function serverCmdPrimary(%client)
{
%player = %client.player;
if(isObject(%player) && %Player.getdatablock().getName() $= "armymansoldier")
{
%player.updateArm(ArmyManMP40Image);
%player.mountImage(ArmyManMP40Image, 0);
}
}
Anybody know whats wrong with it?