1.
GML
if in_sight=1 && zmienna=1
{
sound_play(radio_widzewroga1)
zmienna = 0
}
2.
GML
with(instance_nearest(x,y,przeciwnik))
{
sound_play(radio_granat1)
}
EDIT:
3.ranny
GML
sound_play(radio_dostalem1)
obj = instance_nearest(x,y,osoba)
obj.idzid = id
with(obj)
{
sound_play(radio_okej1)
}
kolega
GML
if idzid!=-1
{
mp_potential_step(idzid.x,idzid.y,3,1)
}