(03-06-2012, 06:27 PM)Nevicar Wrote: This is relevant to the first question asked and is mainly directed at Unearthlybrutal concerning "if" loops.
I have this set up:
if (SetEntityActive("m1") == true)
{
SetPlayerLookSpeed(0.5f);
SetPlayerRunSpeed(0.5f);
SetPlayerMoveSpeed(0.5f);}
else
SetPlayerLookSpeed(1f);
SetPlayerRunSpeed(1f);
SetPlayerMoveSpeed(1f);
}
Would this run correctly? The only reason I'm asking instead of testing is because I don't have access to Amnesia right now.
I'm not sure about that will the "SetEntityActive" work with the "If".
But if it will, this should work: