( Damn I'm posting a lot of topics in here lately )
I'm trying to make the player's footsteps silent in darker areas and in the opposite in lighter areas. Here's what I came up with but it gives the player silent footsteps 24/7:
Code:
if(entity_get_int(id,EV_INT_light_level) <= LIGHT_LEVEL)
{
set_user_footsteps(id,1);
}
else
{
set_user_footsteps(id,0);
}
I have LIGHT_LEVEL set to 25 atm.
__________________