Jump to content

user defined parameters - access of them in an action ?


Herman

Recommended Posts

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

 

Edited by Herman
Link to comment
Share on other sites

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

 

Edited by Herman
P.M with Neo
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...