Raised This Month: $ Target: $400
 0% 

Problem with entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 05-04-2013 , 17:31   Problem with entity
Reply With Quote #1

Hi all.
I'm trying to make an entity to follow me. But the entity doesn't appears.
Here's the code:
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

new szMdl[] = "models/TEST.mdl";

public 
plugin_init() register_clcmd("say /test""Func");
public 
plugin_precache() precache_model(szMdl);

public 
Func(id)
{
    new 
ent create_entity("info_target");
    
ExecuteHam(Ham_CS_RoundRespawnent);
    
    
entity_set_string(entEV_SZ_classname"classname");
    
    new 
Float:fVecOrigin[3];
    
entity_get_vector(idEV_VEC_originfVecOrigin);
    
entity_set_vector(entEV_VEC_originfVecOrigin);
    
// entity_set_origin(ent, fVecOrigin);
    
    
entity_set_float(entEV_FL_takedamage25.0); // Also can someone tell me what is this for
    // I saw it in the NPC tutorial but I don't know what is it for
    
entity_set_float(entEV_FL_health250.0);
    
    
entity_set_size(entFloat:{0.00.00.0}, Float:{50.050.050.0});
    
entity_set_int(entEV_INT_solidSOLID_NOT);
    
entity_set_model(entszMdl);

    
entity_set_int(entEV_INT_movetypeMOVETYPE_FOLLOW);
    
entity_set_edict(entEV_ENT_aimentid);
    
    
entity_set_int(entEV_INT_renderfxkRenderFxGlowShell);
    
entity_set_int(entEV_INT_rendermodekRenderTransAlpha);
    
entity_set_float(entEV_FL_renderamt50.0);
    
entity_set_vector(entEV_VEC_rendercolorFloat:{0.0200.010.0});
    
    
entity_set_float(entEV_FL_animtime2.0)
    
entity_set_float(entEV_FL_framerate1.0)
    
entity_set_int(entEV_INT_sequence0);

didoWEE 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 10:50.


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