Regular API function

sim.waitForSignal

Description Waits for a signal. This function will first check whether an integer, float, double or string signal with that name is present (in that order). The function only returns when the signal is present (defined). See also the other signal functions and sim.wait.
C synopsis
C parameters
C return value
Lua synopsis
number/string signalValue=sim.waitForSignal(string signalName)
Lua parameters
signalName: name of the signal
Lua return values
signalValue: value of the signal