Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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