Originally Posted by DJ Tsunami
Entity properties are not yet available in OnEntityCreated, you need to wait until the entity is spawned.
This is the correct answer. I was able to pull back the name on round_start.
public void OnPluginStart()
HookEventEx("round_start", start_round, EventHookMode_PostNoCopy);
public start_round(Event event, const char name, bool dontBroadcast)
int ent = -1;
while((ent = FindEntityByClassname(ent, "trigger_multiple")) != -1)
GetEntPropString(ent, Prop_Data, "m_iName", ent_name, sizeof(ent_name));
if(StrEqual(ent_name, "multiple1", false))
LogMessage("Entity %d found. Name: %s.", ent, buffer);
I did take the code from https://forums.alliedmods.net/showthread.php?p=1639789
and formed it my needs.