AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity light (https://forums.alliedmods.net/showthread.php?t=162167)

DarkGL 07-15-2011 16:42

Entity light
 
How to do that entity in any place is always same light
pev_light_level don't work

lazarev 07-15-2011 23:43

Re: Entity light
 
pev_effects | EF_BRIGHTLIGHT

DarkGL 07-16-2011 14:51

Re: Entity light
 
to big effect ;) I want to entity bright don't area around him

Flipper_SPb 07-16-2011 15:55

Re: Entity light
 
Try TE_ELIGHT message

DarkGL 07-16-2011 16:51

Re: Entity light
 
Code:

message_begin(MSG_PVS, SVC_TEMPENTITY, origin, 0);
        write_byte(TE_DLIGHT);
        engfunc(EngFunc_WriteCoord,fOrigin[0])
        engfunc(EngFunc_WriteCoord,fOrigin[1])
        engfunc(EngFunc_WriteCoord,fOrigin[2])
        write_byte(3); //radius
        write_byte(255);  //red
        write_byte(255); //green
        write_byte(255); //blue
        write_byte(5);
        write_byte(1);
        message_end();

:)

Hunter-Digital 07-16-2011 16:53

Re: Entity light
 
ELIGHT not DLIGHT.

DarkGL 07-16-2011 17:24

Re: Entity light
 
TE_DLIGHT works good TE_ELIGHT was crashing
can you gave simple code how to use TE_ELIGHT i will find what I m doing wrong :) ?

Hunter-Digital 07-16-2011 19:46

Re: Entity light
 
It doesn't crash, you used it wrong, see the correct syntax in include/messages_const.inc

DarkGL 07-16-2011 23:06

Re: Entity light
 
yes I know that I m doing something wrong so I asked for simple code

bibu 07-17-2011 06:09

Re: Entity light
 
Quote:

Originally Posted by DarkGL (Post 1512267)
yes I know that I m doing something wrong so I asked for simple code

Maybe show what you've done which leads it to a crash?


All times are GMT -4. The time now is 00:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.