quick sound question


(Demolama) #1

dumb question but I am always confussed about the sound parameters :angry: …to get a sound that only the one client can hear is the code something like this?

	trap_S_StartSound (NULL, es->number, CHAN_LOCAL_SOUND, cgs.media.Sound);

(Rain) #2

trap_S_StartSound is something the client does–it’ll only ever be heart on the client making that call.
I believe the entity number is used to fetch the origin (for the doppler effect stuff and for spatialization) when an origin isn’t supplied.