PHP Code:
float fPosition[3];
GetClientAbsOrigin(iClient, fPosition);
int ent = CreateEntityByName("func_hostage_rescue");
DispatchKeyValue(ent, "targetname", "fake_hostage_rescue");
DispatchKeyValueVector(ent, "origin", fPosition);
DispatchSpawn(ent);
ActivateEntity(ent);
float fMins[] = {-100.0, -100.0, -100.0};
float fMaxs[] = {100.0, 100.0, 100.0};
SetEntPropVector(ent, Prop_Send, "m_vecMins", fMins);
SetEntPropVector(ent, Prop_Send, "m_vecMaxs", fMaxs);
the entity is created, but the zone is represented just by the origin.
how can i set vecmins and vecmaxs to this entity with dispatchkeyvalue