Section MusicalInstruments
Musical instruments constants, Map and static functions
Summary
| Return type | Function and summary |
|---|---|
| MusicalInstrument, Sound | GetInstrumentBySoundID(SoundID) Search the MusicalInstrument corresponding to Instrument.SoundID. |
Function
GetInstrumentBySoundID(SoundID)
Search the MusicalInstrument corresponding to Instrument.SoundID.
if MusicalInstrument is known, use the very faster MusicalInstrument:getSound(...) to get the Sound object.
| Parameter | Type | Default | Description |
|---|---|---|---|
| SoundID | Sound or int ID |
- Returns
- MusicalInstrument: nil if not found
- Sound: nil if not found
- See
- MusicalInstrument:getSound