Do you mean moveForward(1); ?
Sadly no, I actually want walk(1); so it will slow down the client's player. My server scripts are as follows:
package crpg_ChangeGears
{
function Armor::onTrigger(%this,%obj,%slot,%on)
{
%client = %obj.client;
if(%on && %slot == 0) //slot 4 is activated by right clicking
{
if($CRPG::isWalking $= "true")
{
commandtoClient(%client,'crpg_ChangeGear', false);
warn("Add-Ons/Gamemode_GRPG/rp/RP_Core/user.cs (931): commandtoClient(%client,'crpg_ChangeGear', false);");
}
else
{
commandToClient(%client,'crpg_ChangeGear', true);
warn("Add-Ons/Gamemode_GRPG/rp/RP_Core/user.cs (936): commandtoClient(%client,'crpg_ChangeGear', true);");
}
}
parent::onTrigger(%this,%obj,%slot,%on);
}
};
activatePackage(crpg_ChangeGears);
In game when I use slot 0/left click it does echo that the changeGear has been set to true, but it says that every single time I use slot 0.
The client code:
function clientcmdcrpg_ChangeGear(%arg)
{
//walk(%arg);
walk(true);
walk(1);
echo(ImWalkingNerd);
$CRPG::isWalking = %arg;
}
At this point I just tried forcing it to be true regardless of whether or not it is being toggled off or on, and it never echos that it is walking.