Coy74 1 Posted December 18, 2022 Hello, everyone! I'm having trouble creating a script where "only" I can call a helicopter rescue after finding a map and a radio. I start the scenario without both, my mission to leave the island is to have a map and a radio, because without them it is impossible to call a rescue. I am currently using a script found on youtube. But I have a problem with having only the map. 1 - If I activated the alpha code without both, the ransom is canceled and I lose, Ok! 2 - If I active the alpha code only with radio, the helicopter does not come and I lose, Ok! 3 - But if I activate the alpha code only with map, the helicopter comes. How do I also cancel the redemption if I activate with just the map? MapClicked = false; onMapSingleClick "clickPos = _pos; MapClicked = true; onMapSingleClick {};"; waitUntil {MapClicked}; player sideChat format["Marcando posição em %1", clickPos]; Mark2 = createMarker [" ", clickPos]; Mark2 setMarkerShape "ICON"; Mark2 setMarkerType "hd_pickup"; Mark2 setMarkerColor "ColorBlue"; Mark2 setMarkerSize [1,1]; Is there a possibility in this script to disable the location for extraction if you have only the map? It is important to have both: map and radio. thank you right now Share this post Link to post Share on other sites
pierremgi 4900 Posted December 18, 2022 You can add a condition like : onMapSingleClick "clickPos = _pos; if ('ItemRadio' in assignedItems player) then {MapClicked = true}; onMapSingleClick {}"; Perhaps, there is another way, depending on your script for calling the helicopter, but the condition will be same. Share this post Link to post Share on other sites
Coy74 1 Posted December 18, 2022 3 hours ago, pierremgi said: You can add a condition like : onMapSingleClick "clickPos = _pos; if ('ItemRadio' in assignedItems player) then {MapClicked = true}; onMapSingleClick {}"; Perhaps, there is another way, depending on your script for calling the helicopter, but the condition will be same. Thanks for answering pierremgi! Worked perfectly! Now for eager players the only option is to be ready for the rescue. I won't forget to mention it. thanks again 1 Share this post Link to post Share on other sites