Rick Posted March 16, 2013 Share Posted March 16, 2013 http://www.leadwerks...le3-sound-node/ From what I can see, Source.Playing, Source.Stopped, Source.Paused don't work. I had to use 0 for stopped and 1 for playing instead of the constants. Otherwise, create a pivot in your scene, attach this script, fill out the properties, and use the flowgraph to trigger your sound. When your sound is finished (loop = false) then it'll trigger an OnComplete output which you can then do whatever else you want. In my example I just played another sound after the first sound was finished. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 16, 2013 Share Posted March 16, 2013 Great. But i have questions : Flowgraph is it fast or slow compared to just use Lua scripting. By connecting Flowgraph boxes, how does it works behind the scene ? Lua code is generated ? Could it be possible to have some : Player Lua script we could connect to some Camera box in the Flowgraph ? (I didn't have dug the flowgraph but keeped programming in Lua) Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted March 16, 2013 Author Share Posted March 16, 2013 I don't know the details 100% on the flowgraph behind the scenes. Josh would have to answer that. Could it be possible to have some : Player Lua script we could connect to some Camera box in the Flowgraph ? I have lots of things planned 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.