Hi, well my problem is that I would like the entity to appear higher than it appears, but I can't get it, it always stays as in the image.
Another problem is that I would like to change the color of the model, is it possible? use glow at the end but would like to change its color if possible
PHP Code:
new iUserPet[33]
CreateSusa(id)
{
new susanowner = id
new susanoo = create_entity("info_target")
if ( !pev_valid(susanoo) ) return;
set_pev(susanoo, pev_classname, "susanoo") // name of ent
entity_set_model(susanoo, "models/shmod/susanoo.mdl") // model
// I Try this for change the origin but not found
new Float:Origin[3], Float:vOrigin[3]
//get_user_origin(susanowner, Origin, 1)
pev(susanowner, pev_origin, Origin)
Origin[2]+= 50
vOrigin[0] += Origin[0]
vOrigin[1] += Origin[1]
vOrigin[2] += Origin[2]
//engfunc(EngFunc_SetOrigin, susanoo, vOrigin)
set_pev(susanoo, pev_origin, vOrigin );
set_pev(susanoo, pev_movetype, MOVETYPE_FOLLOW) // follor player id
set_pev(susanoo, pev_aiment, susanowner) // owner
set_pev(susanoo, pev_framerate, 1.0) // This is for animation?
set_pev(susanoo, pev_animtime, get_gametime()) // This is for animation?
// What is sequence?
set_pev(susanoo, pev_sequence, 0) // ?
// I use this for glow
set_rendering(susanoo, kRenderFxGlowShell, 154, 0, 210, kRenderNormal, 25);
/*
// ----- But i tried to use this to change the color of the model but not found -----
---------------------------------------------------------------------------
new Float:fVecColor[3] // = {154.0, 0.0, 210.0}
fVecColor[0]=float(154.0);
fVecColor[1]=float(0.0);
fVecColor[2]=float(210.0);
new Float:flAmount = 0.0
//Float:{LOCKED_COLOR}
set_pev(susanoo, pev_renderfx, kRenderFxNone)
set_pev(susanoo, pev_rendercolor, fVecColor )
set_pev(susanoo, pev_rendermode, kRenderNormal)
set_pev(susanoo, pev_renderamt, flAmount)
set_pev(susanoo, pev_rendermode, kRenderTransColor)
set_rendering(susanoo, kRenderTransColor, 154, 0, 210)
*/
iUserPet[id] = susanoo;
client_print(susanowner, print_chat, "Tenes susanoo:")
}
and another question I tried to put life into the entity and it would take damage, but it just doesn't, is this ok?
PHP Code:
new Float:p_cvar_health = get_pcvar_float(phealth);
set_pev(susanoo, pev_solid, SOLID_BBOX); // touch on edge, block
set_pev(susanoo, pev_health, p_cvar_health); // X hp para entidad
set_pev(susanoo, pev_takedamage, DAMAGE_YES); // daños activado