Jump to content

GustavSeitzA3

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About GustavSeitzA3

  • Rank
    Newbie
  1. GustavSeitzA3

    Need Help onMapSingle Click

    if (hasInterface) then { player removeAction FireLaser; sleep 1; [ [ ["ARC REACTOR STATUS:", "<t align = 'center' color = '#ffffff' shadow = '1' size = '0.7' font='PuristaBold'>%1</t>"], ["Powering up...", "<t align = 'center' color = '#FF0000' shadow = '1' size = '0.7'>%1</t><br/>"], ["Awaiting Target Co-ordinates", "<t align = 'center' color = '#00DD14' shadow = '0' size = '1.0' font = 'PuristaMedium'>%1</t>", 15] ] ] spawn BIS_fnc_typeText; hint "Click on the map position to authenticate the target"; openMap [true,false]; onMapSingleClick " spawn { FireLaser = ""Land_HelipadEmpty_F"" createVehicle _pos; FireLaser setVehicleVarName ""beamTarget""; beamTarget = FireLaser; [beamTarget, [0,0,1], [0.3,0.27,0.15]] remoteExec [""DREAM_beam_fnc_beam"", 0, false]}; _handle = execVM ""server\satcomLaser\laserFired.sqf""; onMapSingleClick ''; openMap [false, false]; }; true"; waitUntil {!visibleMap}; onMapSingleClick ""; }; Try this maybe it works (not tested)
  2. Hey, you can do something like this: key_rotate = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 16) then { spawn_veh setDir ((direction spawn_veh) + 10); }"]; This is part from a code I use to spawn vehicles. In this case "16" stands for the key Q but it should give you a general idea how to do this. See https://community.bistudio.com/wiki/DIK_KeyCodes if you want to change the key.
×