Welcome to the Creatures Wiki! Log in and join the community.

SNDC

From Creatures Wiki
(Redirected from Sndc)
Jump to navigation Jump to search

SNDC is a CAOS command used to play WAV files in C3/DS.

Documentation[edit]

SNDC (command) sound_file (string)

Plays a controlled sound effect emitted from the target. Updates volume and panning as the agent moves.

Examples[edit]

The piranha makes a flopping sound when it's suffocating and has the sound stop (STPC) when it dies.

	doif rtyp room targ ne 8 and rtyp room targ ne 9
			sndc "fish"
			anim [48 49 50 51 255]
			accg 4
			aero 10
			loop
				wait 1
			untl fall eq 0

			velo rand -5 5 rand -10 -5
			doif ov99 ge 20
				stpc
				anim []
				wait 30
				kill ownr
			endi

See also[edit]