Raised This Month: $ Target: $400
 0% 

Spawn entity light.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-15-2011 , 14:40   Spawn entity light.
Reply With Quote #1

hi,

is my code correct?

PHP Code:
 
public cmd_spawn(id)
{
 static 
origin[3]
 
get_user_origin(idorigin)
 new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"light"));
 
set_pev(ent,pev_classname,"dd");
 
engfunc(EngFunc_SetOriginentorigin);
        
fm_set_kvd(ent"_light""150 0 0""dd");
 
client_print(idprint_chat"light up!")

I have not seen before that someone had spawn entity light.
Mayby it can be,

If i compile map then map compiler write lights on face inside bps
( i am not sure, thats way i am asking about that code. )
.Dare Devil. is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 12-15-2011 , 14:54   Re: Spawn entity light.
Reply With Quote #2

Set pev|EV_INT_effects to EF_BRIGHTLIGHT or make the entity think and send out a TE_DLIGHT temporary entity.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:47.


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