Jump to content
Sign in to follow this  
tomturner

onMapSingleClick setMarkerPos not working since patch 1.16

Recommended Posts

After the recent patch, all of my scripts that use the stackedEventHandler "onMapSingleClick" with a setMarkerPos have stopped setting the marker's position. Is anyone else running into this? And, is there a work-around?

for example:

titleText ["Open Map and Click on Alpha insertion location.", "PLAIN"];

["mk_ainsrtlnd", "onMapSingleClick", {
titleText ["", "PLAIN"];
_tpos = _this select 0;
"bomsf_respawn_4" setMarkerPos _tpos;
hpad_alpha setPos _tpos;
server_1 setVariable ["abo_ains","true",true];

["mk_ainsrtlnd", "onMapSingleClick"] call BIS_fnc_removeStackedEventHandler;
omsca = true;
true;
}] call BIS_fnc_addStackedEventHandler; 

Edit: Apparently the params passed from the onMapSingleClick (_pos) have reverted back to the previous version and no longer require the "_this select 0" designation.

Edited by tomturner

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  

×