Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (monarch), 1,259 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamic lights #106879
01/14/07 18:05
01/14/07 18:05
Joined: Jan 2007
Posts: 18
A
Arturo_Conrado Offline OP
Newbie
Arturo_Conrado  Offline OP
Newbie
A

Joined: Jan 2007
Posts: 18
I know this is a stupid question, but how do i attach a dynamic light to my character? (as in Silent Hill)

Re: Dynamic lights [Re: Arturo_Conrado] #106880
01/14/07 18:59
01/14/07 18:59
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Set the models lightrange at any worth >0

Re: Dynamic lights [Re: Slin] #106881
01/14/07 19:04
01/14/07 19:04
Joined: Jan 2007
Posts: 18
A
Arturo_Conrado Offline OP
Newbie
Arturo_Conrado  Offline OP
Newbie
A

Joined: Jan 2007
Posts: 18
Thanks. I thought i had to create a light and then attach it with SED *duh*

Re: Dynamic lights [Re: Arturo_Conrado] #106882
01/14/07 19:04
01/14/07 19:04
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
You need to assign an action to your character model that contains the code for the dynamic light. The manual has some info under "entity.lightrange".

An example of a simple light action would be:
Code:
action dyn_light
{
//// dynamic light parameters ////
my.lightrange = 500; // turns off light if set to 0
vec_set(my.blue,vector(255,255,255)); // white light, decrease all three if too bright
}



cheers,
tindust


Lighten Your Load With

DynaLights 1.0

Realtime 3D Lighting. Free Trial Version available.

3DGS 660P

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