1 registered members (flink),
767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
light script
#238975
12/01/08 14:51
12/01/08 14:51
|
Joined: Nov 2005
Posts: 1,007
jigalypuff
OP
Serious User
|
OP
Serious User
Joined: Nov 2005
Posts: 1,007
|
By any chance does anyone have a light script for a normal flouresent light? i just want the light to point straight down (and spread a little 0 Thanks for any help.
Why does everyone like dolphins?
Never trust a species which smiles all the time!
|
|
|
Re: light script
[Re: jigalypuff]
#239081
12/02/08 12:31
12/02/08 12:31
|
Joined: Nov 2008
Posts: 946
the_clown
User
|
User
Joined: Nov 2008
Posts: 946
|
action light_down() { set(my,SPOTLIGHT | INVISIBLE | PASSABLE); my.lightrange = my.skill1; vec_set(my.pan,vector(0,-90,0)); vec_set(my.red,vector(my.skill2,my.skill3,my.skill4)); }
Should work. Assign it to an entity in your level at the desired position. Set skill1 to desired light range, skill2, 3 and 4 to desired red, green and blue colors.
Last edited by the_clown; 12/02/08 12:36.
|
|
|
Re: light script
[Re: the_clown]
#239082
12/02/08 12:52
12/02/08 12:52
|
Joined: Nov 2005
Posts: 1,007
jigalypuff
OP
Serious User
|
OP
Serious User
Joined: Nov 2005
Posts: 1,007
|
the set(my,spotlight causes an error i`m afraid says unknown or missing parameter
Why does everyone like dolphins?
Never trust a species which smiles all the time!
|
|
|
Re: light script
[Re: jigalypuff]
#239101
12/02/08 16:36
12/02/08 16:36
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I guess you aren't using Lite-C?!
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: light script
[Re: xXxGuitar511]
#239257
12/03/08 17:32
12/03/08 17:32
|
Joined: Nov 2005
Posts: 1,007
jigalypuff
OP
Serious User
|
OP
Serious User
Joined: Nov 2005
Posts: 1,007
|
well this does not appear to work, i assign the action to a light mesh in the level editor, but it does not create any kind of light that i can see. Is there a way to turn off the default level light? and with the skills i set skill 1 (lightrange) to 30 and the others to 1, is that right?
Why does everyone like dolphins?
Never trust a species which smiles all the time!
|
|
|
|