Regular API
function
simGetScriptAssociatedWithObject / sim.getScriptAssociatedWithObject
Description
Retrieves a child script's handle based on its associated object. See also
sim.getObjectAssociatedWithScript
,
sim.getCustomizationScriptAssociatedWithObject
and
sim.associateScriptWithObject
.
C synopsis
simInt simGetScriptAssociatedWithObject(simInt objectHandle)
C parameters
objectHandle
: handle of the object that might have a child script associated
C return value
handle of the child script associated with the object, or -1 if the operation was not successful or the object doesn't have an associated script
Lua synopsis
number scriptHandle=sim.getScriptAssociatedWithObject(number objectHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function
All regular API functions on one page