Roland Posted September 16, 2014 Share Posted September 16, 2014 I just cant get my head around how to use arguments in the FlowGraph. In and Out without arguments is no problem. But how to use the arguments. Adding a argument to the in function is easy enough Script:myFunc( arg )--in -- use arg end But what about the sending side with the out function. As in the documentation below. How should the LUA script for Box3 look like. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 16, 2014 Share Posted September 16, 2014 Updated the docs function Script:RandomValue()--arg return math.random(1,5) end Also check out here: 2 Quote Link to comment Share on other sites More sharing options...
Roland Posted September 16, 2014 Author Share Posted September 16, 2014 Thanks Aggror. In fact its said in the documentation. Can't believe I missed that Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
josk Posted September 16, 2014 Share Posted September 16, 2014 This video helped me to understand flowgraphs. Quote Elite Cobra Squad Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 16, 2014 Share Posted September 16, 2014 Thanks Aggror. In fact its said in the documentation. Can't believe I missed that I thought I had added this to the docs a few weeks ago, but as it turns out there are 2 places that talk about the flowgraph editor. http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/object-scripts-r631 http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/flowgraph-editor-r17 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.