Sign in to follow this  
Followers 0

Test if player is near traders (ExileClient_util_world_isTraderZoneNearby.sqf)

1 post in this topic

I would like to recommend that the method for detecting whether a player is near a tradder be changed. It presently relies on testing for nearby "EmptyDetectors" which is not specific. Instead, why not test for map markers named "ExileTrader", which is already declared as the type of map marker used for traders in mission.sqm. Using this approach, one might recode in the same way that the test for proximity to spawn points is tested, specifically:

_position = _this;
_radius = 1000;
_isNearby = false;
    if (getMarkerType _x == "ExileTrader") then
        if ((getMarkerPos _x) distance _position < _radius) exitWith
            _isNearby = true;
forEach allMapMarkers;

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.