-kllr2001-
Veteran X
Ok, everything in this code works great, except it wont crouch, or stand... it only does the local taunts... Anyone know what the problem is?
Code:
EditActionMap("playMap.sae");
bindCommand(keyboard0, make, control, "2", TO, "humpz0r::hump(1);");
bindCommand(keyboard0, break, control, "2", TO, "humpz0r::hump(0);");
function humpz0r::hump(%activate)
{
if(%activate)
{
if(!$humpz0r::humpin)
{
$humpz0r::humpin = 1;
humpz0r::sayhump();
}
}
else
{
$humpz0r::humpin = 0;
remoteEval(2048, lmsg, "taunt10");
}
}
function humpz0r::sayhump()
{
if($humpz0r::humpin)
{
postAction(2048, IDACTION_CROUCH, 1.0);
postAction(2048, IDACTION_STAND, 0.0);
remoteEval(2048, lmsg, "death");
schedule("humpz0r::sayhump();", 0.25);
}
}