Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (flink), 767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
light script #238975
12/01/08 14:51
12/01/08 14:51
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline 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 smile 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
T
the_clown Offline
User
the_clown  Offline
User
T

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 Offline OP
Serious User
jigalypuff  Offline 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] #239083
12/02/08 13:01
12/02/08 13:01
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
my.flags2 |= SPOTLIGHT;


3333333333
Re: light script [Re: Quad] #239091
12/02/08 14:21
12/02/08 14:21
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
erm were should that go quadraxas? i have tried it in a few spots (no pun intended) but i get no joy smile


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 Offline
Serious User
Dark_samurai  Offline
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: Dark_samurai] #239104
12/02/08 16:46
12/02/08 16:46
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
well i can, i have a6 plus a7 i still use a6 though cos i`m used to it smile


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: light script [Re: jigalypuff] #239138
12/02/08 21:25
12/02/08 21:25
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
then use my.spotlight = on; instead for c-script


xXxGuitar511
- Programmer
Re: light script [Re: xXxGuitar511] #239257
12/03/08 17:32
12/03/08 17:32
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline 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!
Re: light script [Re: jigalypuff] #239543
12/05/08 11:40
12/05/08 11:40
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
You have to assign it to an ENTITY in your level.
And I think that SPOTLIGHT doesn't work with A6.

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1