Jump to content
Sign in to follow this  
Holmes

onMapSingleClick writing to RPT and displaying hint for all players

Recommended Posts

Hello everyone,

I am current trying to create a script that basically captures when someone places a waypoint using the Shift + click method. So far, I am able to get the script to execute for each person no problem. However, the hint message that I want to be displayed globally is only displaying to the person who clicked on the map. The other issue I am running into is that you just have to click on the map. It does not seem to be verifying whether the Shift button was being held or not. Below is what I have in my init.sqf to execute the script.

onMapSingleClick "if (_shift) then diag_log format ['SERE Waypoint Tracker: %1 (id=%2) used the Shift-Click Waypoint! They are at coordinates %3!', name player, getplayeruid player, mapGridPosition getPos player]";

onMapSingleClick "if (_shift) then hint format ['SERE Waypoint Tracker: %1 (id=%2) used the Shift-Click Waypoint! They are at coordinates %3!', name player, getplayeruid player, mapGridPosition getPos player]";

Any help in getting this script to display the hint globally and actually capture when the Shift + Click method is being used would be greatly appreciated. I am at a stand still with this one

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
Sign in to follow this  

×