Lighting on ENTITIES

Posted By: Valdsator

Lighting on ENTITIES - 09/11/11 23:00

Is it possible for an ENTITY* object to have lighting? By ENTITY* object I mean:
Code:
ENTITY* name
{
stuff
}


I'd like to use this to display a gun in front of the screen. Thanks!
Posted By: bart_the_13th

Re: Lighting on ENTITIES - 09/12/11 04:45

sure, just set it's lightrange
Posted By: 3run

Re: Lighting on ENTITIES - 09/12/11 18:53

Emr? Is it possible to have lightning on view entities? confused
Posted By: Valdsator

Re: Lighting on ENTITIES - 09/12/11 21:02

As in, is it possible for a view entity to be affected by nearby lighting/the sun, rather than being a fullbright entity?
Posted By: Superku

Re: Lighting on ENTITIES - 09/12/11 21:08

No, view entities are only available in camera space, not in world space. You can have view entities without a level, too (see manual).
As a result, they are not affected by any light source in your level. Have a look at the ZNEAR flag, instead.
Posted By: Valdsator

Re: Lighting on ENTITIES - 09/12/11 22:22

Alright, thanks. The only reason I wanted to use view entities is because I could move the gun around much easier if it was just stuck to the screen.
Posted By: 3run

Re: Lighting on ENTITIES - 09/13/11 06:06

As far as I know, view entities are affected by sun light only.
© 2024 lite-C Forums