Jump to content

fallen1701

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by fallen1701

  1. ne, hatte ich nicht richtig gelesen. War in einem englischen Forum und der Post war eher als "wäre schön wenn" gemeint. Aber die Befehle dazu muss es eigentlich im Scripting geben. Da ja auch die AutoStart und AutoShutdown Script (Macro_sequencies.lua) Zustände ändern können. Der Befehl kommt wohl als Analogie aus dem Missioneditor: COCKPIT PERFORM CLICKABLE ACTION – sets the specified cockpit control to the specified position. This trigger can be used to force-set a required cockpit control (for example to engage autopilot mode). · Cockpit device – sets the ID value of the cockpit device manipulated by the required control. Device ID’s are described in Scripts\Aircrafts\Aircraft Name\Cockpit\devices.lua. Device ID’s begin with ‘1’ at the top of the table and are increased by 1 with each subsequent device in the table. For example, the ID for autopilot is ‘38’. · Command – sets the command value for the required control, starting with a base value of 3000. Command values are described in Scripts\Aircrafts\Aircraft Name\Cockpit\clickabledata.lua, using the argument “device_commands.Button_n” (where ‘n’ is the command value of interest). To quickly locate a desired command in the .LUA file, perform a search for relevant terms (such as “autopilot” or “MFCD”). For example, the command to engage the autopilot in A-10C is scripted as “device_commands.Button_2”. As such, it would be entered in the Command field as “3002”. · Value – sets the argument value (control position in the cockpit). Control arguments are described in Scripts\Aircrafts\Aircraft Name\Cockpit\clickabledata.lua. The variable “arg” describes the argument ID (not necessary for this trigger). The variable “arg_value” describes the increment of each movement of the argument. The variable “arg_limit” describes the limits of the argument’s range of movement.
  2. Hallo zusammen, ich komme in einer Sache leider nicht weiter. Ich würde gerne diverse Einstellungen im Cockpit für eine Trainigsmission voreinstellen. Das kann man im Missionseditor ja über "CLICKBARE AKTION DURCHFÜHREN ...." umsetzen. Leider wird das schnell unübersichtlich. In einem .lua Script könnte man einige Sachen auch in Funktionen packen (z.B. die Eingabe von PP GPS Koordinaten) Hat das schon mal jemand von euch hinbekommen? Wenn ich ein Script im Missionseditor einbinde, bekomme ich das leider nie hin ohne eine Fehlermeldung zu kassieren. Ich denke mir fehlt das richtige Objekt um die Methoden auszuführen. Wie kommt man an das Unit Objekt? wenn ich zum Beispiel das für mein Flugzeug ausführen wollte. Unit.action.cockpitPerformClickableAction(35, 3028, 1,"") => left DDI Aktion Unit.action.cockpitPerformClickableAction(35, 3015, 1,"") => left DDI Aktion Unit.action.cockpitPerformClickableAction(35, 3016, 1,"") => left DDI Aktion Was muss ich ändern um kein Nil Objekt Fehler zu bekommen? Hat da einer von euch ein Beispiel? Gruß Falken
×
×
  • Create New...