Sound (Effects) - emd4600/SporeModder-FX GitHub Wiki

This component is used to play a sound at the effect's position.

The sound component is inline, meaning that is is written directly in the effect that uses it. For example:

effect MyEffect
	sound -name 0xCAFED00D
end

Keyword: sound

Options

-name <id>

The name of the sound .soundProp file.


-loop

This option loop the audio after it is played. Note: Without the -loop option, the sound would be played once, however, it will still continue playing if the effect is terminated mid-way, such as in Test Drive mode. With the -loop option, it will terminate the moment the effect is terminated.


-soundFlags <bitfield>


-field_18 <int>


-field_1C <float>


-field_20 <float>


-field_24 <float>

⚠️ **GitHub.com Fallback** ⚠️