if (radar)
{
std::string bOn = "local Entities = System.GetEntities(); for key, Entity in pairs(Entities) do if Entity.actor then if (Entity == g_localActor) or (Entity.actor:GetHealth() <= 0) or (g_gameRules.game:GetTeam(g_localActor.id) == 0 or g_gameRules.game:GetTeam(Entity.id) == g_gameRules.game:GetTeam(g_localActor.id)) then else FeedbackSystem.AddMarker(\"hunt_enemy_global_spotting\", Entity.id); end end end";
pScriptSystem->ExecuteLua(bOn);