AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change light environment (https://forums.alliedmods.net/showthread.php?t=299205)

Creater RJ 07-07-2017 01:02

Change light environment
 
How to change light_environment brightness value, set_lights change the brightness of all the lights i want to change only light_environment.

Abhinash 07-08-2017 07:21

Re: Change light environment
 
You want to change light of whole map or an environment area of a map ?

Creater RJ 07-08-2017 08:37

Re: Change light environment
 
Quote:

Originally Posted by Abhinash (Post 2534065)
You want to change light of whole map or an environment area of a map ?

light_environment is an entity which is their in almost every map which provides light without spawning different lights on the map i want to change the brightness of that entity only and not the other lights, their is variable called brightness but dont know how to access it with amxx

Abhinash 07-08-2017 11:43

Re: Change light environment
 
I think you need to edit the map for that.

Natsheh 07-08-2017 11:52

Re: Change light environment
 
Edit the entity datas

Creater RJ 07-08-2017 13:07

Re: Change light environment
 
Quote:

Originally Posted by Natsheh (Post 2534103)
Edit the entity datas

Yes, but how ? any specific argument or parameter ?

bibu 07-09-2017 10:09

Re: Change light environment
 
Quote:

Originally Posted by Creater RJ (Post 2534110)
Yes, but how ? any specific argument or parameter ?

You could use pfnKeyValue to hook for it's properties and use DispatchKeyValue to change it.
These are the options to change:

http://files.gamebanana.com/img/ss/tuts/10299c.jpg

Depresie 07-09-2017 14:04

Re: Change light environment
 
download zombie plague 5.0 source code, look inside zp50_lights or something, you have there the stuff you need

SpawnerF 07-09-2017 16:29

Re: Change light environment
 
Quote:

Originally Posted by bibu (Post 2534249)
-snip-

I tried it not working ... It doesn't even print the debug message if it's found or not ( the entity ), maybe it's not created and should be created?

bibu 07-09-2017 17:38

Re: Change light environment
 
Show your code..


All times are GMT -4. The time now is 23:09.

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