audio_emitter_get_vz

This function returns the current velocity along the z axis for the given audio emitter.

 

Syntax:

audio_emitter_get_vz(emitter);

Argument Description
emitter The index of the emitter to use.

 

Returns:

Real

 

Example:

if audio_emitter_get_vz(emitter_player) != 0
   {
   audio_emitter_velocity(emitter_player, 0, 0, 0);
   }

The above code checks the current z velocity of a given emitter and if it is not equal to 0, it is set to 0.