audio_emitter_get_vy


描述

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


语法:

audio_emitter_get_vy(emitter);


参数 描述
emitter The index of the emitter to use.


Returns:

实数


例如:

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

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