[T1] Script Help

-kllr2001-
02-15-2003, 03:16 PM
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?



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);
}
}

cyclonite
02-15-2003, 04:40 PM
I don't think you need this line:
postAction(2048, IDACTION_STAND, 0.0);

-kllr2001-
02-15-2003, 04:44 PM
lol when i take that out it keeps me crouched

-kllr2001-
02-15-2003, 05:04 PM
k i got it working now