Regular API function


Description Executes non-threaded child scripts located in the current scene hierarchy branch. By default child scripts will be executed in a cascaded fashion and this command should only be called from the main script, except for special situations (in that case refer also to the function call simSetScriptAttribute(scriptHandle,sim_childscriptattribute_automaticcascadingcalls,false)).
C synopsis -
C parameters
C return value
Lua synopsis
number executedScriptCount=simHandleChildScripts(number callType,...=nil)
Lua parameters
callType: the child script call type.
...: can be any arguments that you want to pass to the child scripts that will be called. Inside the called child scripts, the arguments can be retrieved with arguments=...
Lua return values
executedScriptCount: number of executed non-threaded child scripts

All regular API functions on one page