Light an area (How to ?)
Hi,
Is it possible to light a closed area (like a room) during a certain time, like for 30 seconds, or waiting some one switch of this light ? |
Re: Light an area (How to ?)
http://www.amxmodx.org/funcwiki.php?go=func&id=371
i.e.: for pitchblack: Code:
for as bright as you can get it: Code:
to return to normal: Code:
FYI: Code:
|
Re: Light an area (How to ?)
@rolnaaba: set_lights() is for the whole map ;)
Code:
spawn_light(origin[3])greetz regalis |
Re: Light an area (How to ?)
Please note I don't understand the measurements, or how to correctly set the life for 30 seconds but you will see that decay affects how fast the light withdraws over its lifespan, i.e "shrinking".
|
Re: Light an area (How to ?)
I know set_lights is for whole map, thought thats what he wanted O.o but I was wrong
|
Re: Light an area (How to ?)
But how to let during 30 secondes and get a very nice light ?
|
Re: Light an area (How to ?)
I Think this:
Code:
write_byte(8); // life in 10'sNow use this Code:
write_byte(10); // life in 10'sand the task should repeat 30 times..0o Maybe add a second dlight at the half time to prevent flickering.. It should then pulse or something... Or maybe adjust the "decay" thingy ;) greetz regalis |
Re: Light an area (How to ?)
Code:
|
Re: Light an area (How to ?)
Quote:
This is a local dynamic light not for the whole map... You have to set a specific location for this ;) If you want to set the light for the whole map use what rolnaaba postet (set_lights() )... Btw.: This --> set_task(0.01,"Light") will be set_task(0.1,"Light") Shorter periods than 0.1 aren't supported.. But that seems ok... greetz regalis |
Re: Light an area (How to ?)
Hi,
Quote:
hand, mogel |
| All times are GMT -4. The time now is 10:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.