Posts
371
Respect
160Add +1
Forum Rank
Perk Hacker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!// wallbuys = get_wallbuys_for_zone(player get_current_zone());
get_wallbuys_for_zone(zone_name)
{
if(!maps\_zombiemode_zone_manager::zone_is_enabled(zone_name))
return [];
wallbuys = GetEntArray("weapon_upgrade", "targetname");
result = [];
for(i = 0; i < wallbuys.size; i++)
{
if(wallbuys[i] maps\_zombiemode_zone_manager::entity_in_zone(zone_name))
result[result.size] = wallbuys[i];
}
return result;
}
Maybe you can do something similar to what they do in check_point_in_active_zone() in _zombiemode_utility: create a script_origin, but some units in front of the weapon, and check if it's touching the zone. Maybe some zones are bigger than they should.
