UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - zw443

Ok, so I'm trying to add a function that scans the map for any wallbuys within a radius from an origin, and check if price is acceptable. Here is the function is so far;
Code Snippet
php
function get_wallbuys(orig, radius, price)
{
    weps = getentarray("weapon_upgrade", "targetname");
    wep = arraygetclosest(orig, weps, radius);
/*
    cost = wep.zombie_cost
    if (cost > price) return false;
    else if (cost <= price) return wep;
*/
}
I don't think zombie_cost is part of the entity (I edited a wallbuy prefab via text editor, no cost/price listed). I also saw a function by treyarch named load_weapon_spec_from_table. But I have no idea how to work with it. Any help would be apreciated.
5 years ago
Loading ...