Herman Posted August 25 Share Posted August 25 (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 by Herman Link to comment Share on other sites More sharing options...
Neo Posted August 25 Share Posted August 25 Hi Herman, why do you want to change the trigger parameters? Kind regards, Neo Link to comment Share on other sites More sharing options...
Herman Posted August 25 Author Share Posted August 25 (edited) Deleted this one, not relevant Edited August 26 by Herman P.M. with Neo Link to comment Share on other sites More sharing options...
Herman Posted August 25 Author Share Posted August 25 (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 by Herman P.M with Neo Link to comment Share on other sites More sharing options...
EASY Posted August 26 Share Posted August 26 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 Link to comment Share on other sites More sharing options...
Neo Posted August 26 Share Posted August 26 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 More sharing options...
Herman Posted August 26 Author Share Posted August 26 1 hour ago, EASY said: but it should show the principle. Hello @EASY , thanks a lot ! Kind regards. Link to comment Share on other sites More sharing options...
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