If I understood right, you can easily do that with engine:
Code:
public plugin_init()
{
register_think("myGlobalThink", "ent_think")
/* you don't have to create the entity here if you don't want */
new ent = create_entity("info_target")
if(ent)
{
entity_set_string(ent, EV_SZ_classname, "myGlobalThink")
entity_set_float(ent, EV_FL_nextthink, get_gametime() + 0.01)
/* There's no need for call_think() or DispatchSpawn() */
}
}
public ent_think(ent)
{
/* do stuff... */
entity_set_float(ent, EV_FL_nextthink, get_gametime() + 0.01)
}
If you really need something done really fast or verry accurate use that.
From my experience, set_task() is not too reliable on accurate timeline and can be set to a minimum of 0.1 seconds.
__________________