I've been searching around and I can't seem to find it, but how can I get the origin of a non-player entity by entid?
Thanks
---
This is what I have so far:
Code:
public item_c4_detonator() {
new arg[32]
read_argv(1,arg,31)
new id = str_to_num(arg)
new entid = find_ent_by_owner(id,"info_target",id)
new Float:vector[3]
//entity_get_vector(entid,EV_VEC_origin,vector)
get_brush_entity_origin(entid,vector)
new origin[3]
format(origin,0,"%f",vector[0])
format(origin,1,"%f",vector[1])
format(origin,2,"%f",vector[2])
basic_explosion(origin)
return PLUGIN_HANDLED
}
__________________