AR/getSoundEffects

From Multi Theft Auto: Wiki
Revision as of 00:55, 6 November 2013 by Tete (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

هذه الوظيفة تجلب حالات تأثيرات الصوت في جدول

Syntax

table getSoundEffects ( element sound )

Required Arguments

Returns

تنتج جدول فيه اسماء الحالات كمفاتيح للقيم

مثال:

{
    gargle = false,
    compressor = false,
    echo = true,
    i3dl2reverb = true,
    distortion = false,
    chorus = false,
    parameq = false,
    reverb = false,
    flanger = false
}

أسماء تأثيرات الصوت:

  • gargle
  • compressor
  • echo
  • i3dl2reverb
  • distortion
  • chorus
  • parameq
  • reverb
  • flanger

Example

function switchEffects(sound)
	for _,v in ipairs(getSoundEffects(sound)) do -- Go through the whole list of sound effects for the sound
		if v == "gargle" then -- If the sound effect is 'gargle', proceed
			setSoundEffectEnabled(sound, "gargle", false) -- Disable the 'gargle' -effect
		end
	end
end

أنظر أيضاً