i was just wondering how you go about spawning ents into the world properly
something like this or do i need more?
Code:
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
if (!pev_valid(ent)) return 0
set_pev(ent, pev_classname, "bananas")
set_pev(ent, pev_origin, origin)
engfunc(EngFunc_SetModel, ent, "models/banana.mdl")