Jump to content

Empfohlene Beiträge

Geschrieben (bearbeitet)

Hello members , look first at the picture.

userdefined.thumb.jpg.6b26b746c2dd0c0ff1a08b9111025454.jpg

In condition Property/Variable has value I can access the parameter "aNumber" in the graphical EV. It is one of the two triggers here. 
Now I want to access the same "aNumber" in action Set property/variable , but no trigger available in the graphical EV.

We can solve it in Lua, and a workaround ( aNumber as object variable in the vehicle  ) is possible but I'm not looking for that, nor for a Lua solution.

Maybe another way to access the parameter in the action ? 

Thanks in advance for an answer.
Regards, Herman

 

Bearbeitet von Herman
Geschrieben (bearbeitet)

Hello @Neo , members, 


This question stays

  • Return values from custom events are passed back to the calling function in Lua.

Of course if someone can give here an explanation / a simple example, thanks.
Regards, Herman

 

Bearbeitet von Herman
P.M with Neo
Geschrieben

Hallo,

vor 21 Stunden schrieb Herman:

Of course if someone can give here an explanation / a simple example, thanks.

the event calling the user-defined event...
Bild001.jpg.9aa52f57f418c0a008c26f38823ff99e.jpg

 

... the user-defined event...
Bild002.jpg.ad6221fad499d8e8bbe3d77418812052.jpg

... the result...
Bild003.jpg.001323b2d621f76f976db46cf2a55218.jpg

I know that this can also be solved without user-event, but it should show the principle.

EASY

Geschrieben

Hi Herman,

EASY already presented you an example. Return values of user defined events are only meaningful within Lua, and they are required for the new external network interface, which should retrieve data from the event management by calling custom events.

Kind regards,

Neo

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...