PDA

View Full Version : Can you make your light go dim?


Miss_Stalker
11-24-2002, 03:53 AM
Map type: MP
Editor: GTKRadiant

I want to make a light which dims and turns back on after a few secs. Can you do something like this in jk2? Please tell me yes :( I havent been able to make anything which I wanted so far.

:amidala:

Dragarius
11-24-2002, 07:28 AM
I would think this would be possible with a script for the light.

I haven't tried it and am very new to scripts, but it seems well within the bounds of what scripts do.

Something along the lines of (psuedocode - not to be quoted for a working script)

Set light value low

Wait a bit

Set light value high


And with the PARMs for each light entity set (say min and max values) every light could have a different brightness, and a different lower light level and all use the same script.

Again, this is theory based on my reading of the ICARUS manual and not field tested.

Dragarius

Gideon
11-24-2002, 01:01 PM
Do you want it to go on again at a TIMe or when somebody eaches a certain PLACE???

If it's time I think you can use some sort of trigger, thn again, I'm nor really the expert on triggers and stuff

Wes Marrakesh
11-24-2002, 01:58 PM
http://richdiesal.jedioutcastmaps.com/

Go to the tutorial on dynamic lights... enjoy ;)

Miss_Stalker
11-25-2002, 03:12 AM
thanks everyone :) can you make that for mp too tho? cuz lots of things were taken out of mp from sp like the tutorial on that site says but I dont know whether it was taken out or not :confused:

Dragarius
11-25-2002, 03:18 AM
Actually (with more reading) I'm not sure a script will work in MP.

I would suggest using two light entities at the same place and trigger one to turn on and off.

If you want a timer on it (without a script) you could try using a door. Say, a 1 x 1 x 1 FUNC_DOOR under the floor and trigger the 'door'. The 'door' can trigger light off when activated and light on when done. The delay would then be the move time including waits of the 'door'.

Again, I haven't tried this and given the limitations I have seen with MP it may not work just because of that.

Wes Marrakesh
11-25-2002, 09:24 PM
Scripts WILL NOT work in MP. Dinamic lights should.

Tigris
11-26-2002, 03:20 AM
Dinamic Lights DO work.
Just use the styles.

wedge2211
11-26-2002, 12:24 PM
Originally posted by Dragarius
If you want a timer on it (without a script) you could try using a door. Say, a 1 x 1 x 1 FUNC_DOOR under the floor and trigger the 'door'. The 'door' can trigger light off when activated and light on when done. The delay would then be the move time including waits of the 'door'.

Ick. Don't do that. Instead, use a target_delay...The target_delay get targeted by something, then waits a certain amount of time, then fires its targets.

If you're interested in timing events, there is a func_timer that fires its targets every few seconds.