When I make an entity with a specific size, give it a model that is
smaller than the size of the entity and make it glow, only the model will glow. How can I make the whole space that the entity fills glow?
I want to give a color (or glow) to a walkguard block zone:
PHP Code:
public CreateZone(Float:position[3], Float:mins[3], Float:maxs[3], zm, campertime) {
new entity = fm_create_entity("info_target")
set_pev(entity, pev_classname, "walkguardzone")
fm_entity_set_model(entity, "sprites/port1.spr")
fm_entity_set_origin(entity, position)
set_pev(entity, pev_movetype, MOVETYPE_FLY)
new id = pev(entity, ZONEID)
if (editor)
{
set_pev(entity, pev_solid, SOLID_NOT)
} else
{
set_pev(entity, pev_solid, solidtyp[ZONEMODE:id])
}
fm_entity_set_size(entity, mins, maxs)
fm_set_entity_visibility(entity, 1)
set_rendering(entity, kRenderFxGlowShell, 255, 0, 0, kRenderTransAdd, 255) //it only makes the model glow
set_pev(entity, ZONEID, zm)
set_pev(entity, CAMPERTIME, campertime)
return entity
}