Raised This Month: $ Target: $400
 0% 

Spawn entity light.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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