Yes. EV_SZ_classname/pev_classname is the name of our ent.
No. You have to pass "info_target" or you will run into this error.
Code:
[HAMSANDWICH] Failed to retrieve classtype for "npc_ent", hook for "npc_Think" not active.
I believe there is already an ent created named "info_target" at the start of every game. That's why we pass "info_target" into create_entity function.
Add this somewhere in your npc_Think method and you'll understand what we're talking about.
PHP Code:
static className[32];
entity_get_string(iEnt, EV_SZ_classname, className, charsmax(className))
client_print(0, print_chat, "Classname: %s", className);
The actual classname for our NPC is "npc_ent".
__________________