Hmm the Visionaire Studio is built with C++, however it contains a object model which is stored inside of what we call the data structure. Most things can be accessed / manipulated via Lua script.I believe C is also allowed - well at least it is in regards to creating openGL shader effects.Now... Visionaire Studio was never intended to be fully scriptable, hence not everything can be scripted, accessed or manipulated via Lua script. There are no classes, like c# / java style code of unity or certain other engines, there are the data structure tables & fields & there are exclusive functions that have been implemented by the VS studio team & then there are scripts & workflow functions that I & other people have written.Currently the Lua sound functions are separate from the in-editor sounds. It is entirely possible to create, control & manipulate all of your audio via Lua script though, using the Lua functions created for the openAL sound engine that was implemented for cross-platform purposes into Visionaire Studio 4.x.Please see the scripting section of the [url=http://wiki.visionaire-tracker.net/wiki/]wiki[/url], in particular, these pages:[list=a][*][url=http://wiki.visionaire-tracker.net/wiki/Scripting]scripting[/url]: introduction to scripting in Visionaire Studio.[*][url=http://wiki.visionaire-tracker.net/wiki/Player_Commands]player functions[/url]: exclusive Lua functions for accessing / manipulating certain features of Visionaire Studio.[*][url=http://wiki.visionaire-tracker.net/wiki/Data_Structure]data structure[/url]: a list of data structure fields & tables, with explanations of what they are for.[*][url=http://wiki.visionaire-tracker.net/wiki/Compiled_Index_of_Lua_Scripts_for_Visionaire_Studio]script index[/url]: a compiled list of scripts, functions, visionaire functions & workflow functions, etc. written by myself & other members.[/list]P.S: all of the Lua audio functions can be found in the player functions page. I believe nearly all of the function pages contain working examples.P.P.S: in regards to the script snippets I provided in my last message: you could add them into an execute a script action part, or maybe include them into a function inside of a definition script or maybe into a executed (non-definition) script - non-definition scripts will only be executed when you call them with the call script action part. Definition scripts will be executed on game launch & are useful for defining functions & variables at game launch, which can then be accessed & manipulated from anywhere in the project via execute a script action parts providing the variables, tables & functions are not defined as [i]local[/i].
by afrlme, 11 years ago