hi,
is my code correct?
PHP Code:
public cmd_spawn(id)
{
static origin[3]
get_user_origin(id, origin)
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "light"));
set_pev(ent,pev_classname,"dd");
engfunc(EngFunc_SetOrigin, ent, origin);
fm_set_kvd(ent, "_light", "150 0 0", "dd");
client_print(id, print_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. )