This is the failed script that I cobbled together
Code: Select all
#library "RunScript"
script 1 ENTER
{
if (!GetCVar ("cl_run"))
{int buttons;
while (TRUE)
{
buttons = GetPlayerInput( -1, INPUT_BUTTONS );
if ( buttons & +speed )
{
SetActorState (0, "See.Run", TRUE);
}
delay(1);
}
else
{
SetActorState (0, "See.Run", TRUE);
(int buttons;
while (TRUE)
{
buttons = GetPlayerInput (-1, INPUT_BUTTONS );
if (buttons & +speed )
{
SetActorState (0, "See", TRUE};
}
delay (1);
}
}
}
The bottom part is supposed to be for if the player is using autorun. Can someone explain what's going on here? I honestly have no clue.
Knowing me, it's probably going to be some detail I overlooked...