Herman Posted August 25, 2023 Posted August 25, 2023 (edited) Hello members , look first at the picture. 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 August 25, 2023 by Herman
Neo Posted August 25, 2023 Posted August 25, 2023 Hi Herman, why do you want to change the trigger parameters? Kind regards, Neo
Herman Posted August 25, 2023 Author Posted August 25, 2023 (edited) Deleted this one, not relevant Edited August 26, 2023 by Herman P.M. with Neo
Herman Posted August 25, 2023 Author Posted August 25, 2023 (edited) 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 August 26, 2023 by Herman P.M with Neo
EASY Posted August 26, 2023 Posted August 26, 2023 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... ... the user-defined event... ... the result... I know that this can also be solved without user-event, but it should show the principle. EASY
Neo Posted August 26, 2023 Posted August 26, 2023 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
Herman Posted August 26, 2023 Author Posted August 26, 2023 1 hour ago, EASY said: but it should show the principle. Hello @EASY , thanks a lot ! Kind regards.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now