i tried to use find_entity_by_class , find their origin, and then use find_sphere_class, but i dont think it's working
Code:
new bs_ent = find_ent_by_class(bs_ent, "info_bomb_target")
get_brush_entity_origin(bs_ent, SITES_ORIGIN)
console_print(1, "test 1 %f", SITES_ORIGIN[1])
new bs_players[33]
new playerfound = find_sphere_class(0, "player", 300.0, bs_players, 33, SITES_ORIGIN)
for(new i = 0; i < playerfound; i++){
console_print(1, "test 2 %f", SITES_ORIGIN[2])
}
return PLUGIN_CONTINUE;
if i run my code, the console_print function will just output 0.0000, so i believe my code still can't find the bombsite origin...
pls help me XD