Jump to content

MMAXIMUSS

Member
  • Content Count

    7
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About MMAXIMUSS

  • Rank
    Rookie
  1. Does somebody have a video how this is implemented? I made my custom DUWS mission but I fail to understand this beautiful script.. It's just me ofc
  2. Hey again :) To be sure, is this the way? (case 36) Much respect for coding pro's...
  3. Thank you all for your help! I'm away from home during the week, but I will test it all on Friday. And show you a clip ;). Thanks again for the persistence!
  4. If that is what you would like to do, I won't judge.... I tried the code but no luck. Nothing happens, map doesn't even open. I'm trying for over 3 weeks now, maybe I should give up. Thanks for the support though!
  5. hahahaha, true... Wouldn't it be nice if we could code our lives ;-). Thanks a ton! I will test this in some hours.
  6. Wow thanks! So case 36: { // minigun boat (Armed) if (commandpointsblu1 >= 5) then { hint "Vehicle ready ! Click on the map to deliver it!"; commandpointsblu1 = commandpointsblu1 - 5; ctrlSetText [1000, format["%1",commandpointsblu1]]; closeDialog; // Closes your dialog sleep 0.01; // Needs time to close openMap true; // Opens map _mapEH = addMissionEventHandler ["MapSingleClick", {_pos = _this select 1; vehic = "B_Boat_Armed_01_minigun_F" createVehicle _pos; openMap false;}]; waitUntil {!visibleMap}; // Wait until map is closed, either by ESC/M or map click removeMissionEventHandler ["MapSingleClick",_mapEH]; // removes eventhandler so it doesn´t stack and spawn more than one vehicle}; }; } else { hint "Not enough command points"; }; }; Would solve all my "misery"?
  7. How are you doing? Fine I hope. I'm trying to have my vehicles spawned at a selected location. I can't use openMap because the menu -already opened- blocks it, I think. So it would be cool that when I open my map after closing the menu and click on a position, the vehicle will spawn there. Any idea? case 36: { // minigun boat (Armed) if (commandpointsblu1 >= 5) then { hint "Vehicle ready ! Exit and click on the map to deliver it!"; commandpointsblu1 = commandpointsblu1 - 5; ctrlSetText [1000, format["%1",commandpointsblu1]]; onMapSingleClick { vehic = "B_Boat_Armed_01_minigun_F" createVehicle _pos; }; }; } else { hint "Not enough command points"; }; }; Thanks!
×