AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Light level where entity placed (https://forums.alliedmods.net/showthread.php?t=325395)

ubermensch1337 06-20-2020 08:28

Light level where entity placed
 
Hi. How can I get level light around entity where it placed?
Thx in advance

Natsheh 06-20-2020 10:07

Re: Light level where entity placed
 
set_pev(entity_index, pev_effects, (pev(entity_index, pev_effects)|EF_BRIGHTFIELD|EF_BRIGHTLIGHT))

From fakemeta.

More effects flags

Search
Next time.

ubermensch1337 06-21-2020 00:27

Re: Light level where entity placed
 
Quote:

Originally Posted by Natsheh (Post 2706547)
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?

rtxa 06-22-2020 22:36

Re: Light level where entity placed
 
Quote:

Originally Posted by ubermensch1337 (Post 2706649)
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)


All times are GMT -4. The time now is 17:07.

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