audio_emitter_get_z

Returns the current z position of a given emitter.

Syntax:

audio_emitter_get_z(emitter);


Argument Description
emitter The index of the emitter to use.


Returns: Real


Description

This function returns the current z position of the given audio emitter.


Example:

if audio_emitter_get_z(emitter_player) != 0
   {
   var ex = audio_emitter_get_x(emitter_player);
   var ey = audio_emitter_get_y(emitter_player);
   audio_emitter_position(emitter_player, ex, ey, 0);
   }

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


Back: Audio Emitters
Next: audio_emitter_get_vx
© Copyright YoYo Games Ltd. 2018 All Rights Reserved