keatongregg
Member
- Messages
- 19
- Reaction score
- 7
- Points
- 8
I asked for help with this yesterday and I was told that I need to put the code in a loop, but I did that and still can't seem to make it work. Anybody know what I'm doing wrong?
Here's the code in case I'm just an idiot
Here's the code in case I'm just an idiot
Code:
function func_newMovementOn()
{
self endon ("StopMovement");
for(;;)
{
if(self.gamevars["newMovement"]== true)
{
SetDvar( "doublejump_enabled", 1 );
SetDvar( "juke_enabled", 1 );
SetDvar( "playerEnergy_enabled", 0 );
SetDvar( "wallrun_enabled", 1 );
SetDvar( "sprintLeap_enabled", 1 );
SetDvar( "traverse_mode", 1 );
SetDvar( "weaponrest_enabled", 1 );
}
wait .1;
}
}
Last edited by a moderator: