Raised This Month: $ Target: $400
 0% 

Light level where entity placed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ubermensch1337
New Member
Join Date: Jun 2020
Old 06-20-2020 , 08:28   Light level where entity placed
Reply With Quote #1

Hi. How can I get level light around entity where it placed?
Thx in advance
ubermensch1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-20-2020 , 10:07   Re: Light level where entity placed
Reply With Quote #2

set_pev(entity_index, pev_effects, (pev(entity_index, pev_effects)|EF_BRIGHTFIELD|EF_BRIGHTLIGHT))

From fakemeta.

More effects flags

Search
Next time.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-20-2020 at 10:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ubermensch1337
New Member
Join Date: Jun 2020
Old 06-21-2020 , 00:27   Re: Light level where entity placed
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
set_pev(entity_index, pev_effects, (pev(entity_index, pev_effects)|EF_BRIGHTFIELD|EF_BRIGHTLIGHT))

From fakemeta.

More effects flags

Search
Next time.
I don't want create light around entity, I wan't get level light (wia pev_light_level for player). How I can make it?
ubermensch1337 is offline
rtxa
Senior Member
Join Date: Mar 2018
Location: Argentina
Old 06-22-2020 , 22:36   Re: Light level where entity placed
Reply With Quote #4

Quote:
Originally Posted by ubermensch1337 View Post
I don't want create light around entity, I wan't get level light (wia pev_light_level for player). How I can make it?
You need to hook FM_CmdStart and get value with get_uc(uc_handle, UC_LightLevel)
__________________
rtxa is offline
Reply



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 17:06.


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