12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- _logic = param [0,objNull,[objNull]];
- _units = param [1,[],[[]]];
- if !(local _logic) exitWith {};
- _position = getPos _logic;
- [
- "Beam Laser Strike", // title
- [ // array of controls for dialog
- ["COMBO", ["Beam Colour", "Colour of laser particles and glow"],
- [ // control args
- ["Default", "Red", "Orange", "Yellow", "Green", "Cyan", "Pink", "Purple"],
- ["Default", "Red", "Orange", "Yellow", "Green", "Cyan", "Pink", "Purple"],
- 0
- ]
- ],
- ["COMBO", ["Debris Colour", "Colour of dust kicked up by explosion"],
- [ // control args
- ["Default", "Mud", "Snow", "Sand"],
- ["Default", "Mud", "Snow", "Sand"],
- 0
- ]
- ]
- ],
- {
- params ["_dialogResult", "_args"];
-
- private _beamColour = _dialogResult#0;
- switch (_dialogResult#0) do { // select beam colour
- case "Default": {_beamColour = [1,0.6,0.2];};
- case "Red": {_beamColour = [0.5,0,0];};
- case "Orange": {_beamColour = [0.3,0.15,0.1];};
- case "Yellow": {_beamColour = [1,0.9,0];};
- case "Green": {_beamColour = [0,0.5,0];};
- case "Cyan": {_beamColour = [0,0.5,0.5];};
- case "Pink": {_beamColour = [1,0,0.6];};
- case "Purple": {_beamColour = [0.5,0,1];};
- };
-
- private _debrisColour = _dialogResult#1;
- switch (_dialogResult#1) do { // select debris colour
- case "Default": {_debrisColour = [0.3, 0.27, 0.15];};
- case "Mud": {_debrisColour = [0.15, 0.11, 0.08];};
- case "Snow": {_debrisColour = [1, 1, 1];};
- case "Sand": {_debrisColour = [1, 0.8, 0.3];};
- };
- private _beamTarget = "Land_HelipadEmpty_F" createVehicle _args#0;
- [_beamTarget, _beamColour, _debrisColour] remoteExec ["tts_beam_fnc_beam", 0, false];
- _beamTarget spawn {sleep 60; deleteVehicle _this;};
- }, {}, [_position]
- ] call zen_dialog_fnc_create;
|