Raised This Month: $ Target: $400
 0% 

Light level


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-27-2005 , 22:55   Light level
Reply With Quote #1

( 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.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode