Jump to content
coder4crack

How to get list of all groups/vehicles/units on map on mouse click or mouse over

Recommended Posts

Hi,

 

I would like some help getting a list of all friendly enemygroups on the map when i mouse over (using ctrlMapMouseOver), or get info pertaining to the group when I mouse click.

 

Any help would be appreciated.

 

Thanks.

Share this post


Link to post
Share on other sites

Soldier Tracker by fn_Quiksilver : 

 

Dynamic Player Markers by aeroson : 

 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks, but this is not what I needed an answer for.

 

I just need to get the friendly group/object under cursor.

Share this post


Link to post
Share on other sites

no. while in game on the map. as a simple test, i want to display group info (friendly or enemy) when i hover over or click mouse on item on map.

 

Share this post


Link to post
Share on other sites

Easier than I thought...

 

onGroupIconClick

{ // Passed values for _this are: _is3D = _this select 0; _group = _this select 1; _wpID = _this select 2; _RMB = _this select 3; _posx = _this select 4; _posy = _this select 5; _shift = _this select 6; _ctrl = _this select 7; _alt = _this select 8; _message = format ["____ Info ____"]; {_message = _message + format ["\n %1",_x]} forEach _this; hint _message; }

Share this post


Link to post
Share on other sites
54 minutes ago, coder4crack said:

Easier than I thought...

 

onGroupIconClick

{ // Passed values for _this are: _is3D = _this select 0; _group = _this select 1; _wpID = _this select 2; _RMB = _this select 3; _posx = _this select 4; _posy = _this select 5; _shift = _this select 6; _ctrl = _this select 7; _alt = _this select 8; _message = format ["____ Info ____"]; {_message = _message + format ["\n %1",_x]} forEach _this; hint _message; }

 

soldier tracker features

 

Quote

- Maximum performance. When your Map is closed, so is the script.
- A documentation file accompanies the script.

- Optimized for TvT, PvP, Co-op, SP, MP.
- Large selection of flexible configuration options.
- No Mod dependencies, is fully vanilla compatible.
- Fully MP / Dedicated / SP / Host-Server Compatible.
- Debug / Development setting to reveal all objects, vehicles and units.
- Are you an admin? Log in as admin to reveal all units, if you configure it to do so.
- Integrated with BIS Dynamic Groups for dynamic group naming.
- Integrated with 3rd Party Medical systems including BIS and ACE 3 Systems.
- Can choose to show Only Groups and No vehicle/unit positions, or not.
- Can choose to show Only Groups + Vehicle positions (No unit positions).
- Can choose to show Only Unit/Vehicle positions (No group markers).
- Can choose to show Only Vehicle positions (No unit or group information).
- Can choose to show selected unoccupied vehicles.
- Can choose to show or hide AI details across all interfaces.
- Can choose to show or hide Unit Roles and vehicle types.
- Can choose to show only icons and no names / vehicle types / roles, or both.
- Can choose to show friendly factions, or not.
- Can choose to show civilians, or not.
- Can allow faction alliance changes to affect what is shown.
- Can have Interactive Map Icons (Reveal occupants of vehicle by clicking on the occupied vehicle).
- Can have Interactive Group Icons (Reveal more group details by clicking on the Group leader).
- Can have a delayed unit position update (Sonar Pulse effect), if desired. Only works for Map Icons. GPS and group Icons are always shown real-time.
- Configure the colors and sizes and positioning of the Icons (relative to the object) to your liking.
- Intuitive map zoom integration.
- Zooming in and out on your map will hide and reveal certain (group/unit/vehicle) elements.
- And more ...

 

  • Like 1

Share this post


Link to post
Share on other sites

I do no want to use this script as this does not serve my porpose.

 

I tried this:

 

onMapSingleClick  

       _cords = (findDisplay 12 displayCtrl 51)   ctrlMapScreenToWorld getMousePosition; 

      _object =  nearestObject _cords;  

      hint str _object;                 

}

 

and it workd for a while, but the instant I select a group from high command, and set it a waypoint, when I click the group's vicinity, i will now get NOID!!

 

is this some sort of undiscovered arma 3 bug??

 

Is there awork around?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×