GML
if ready=1 && teraz_bron=1
{
repeat(5) instance_create(x,y,obj_pocisk_shotgun)
instance_create(x,y,obj_shotgun_luska)
sound_play(snd_shotgun)
ready=0
alarm[0]=30
global.naboje-=1
}
obj_pocisk_shotgun:
GML
direction = point_direction( x, y, obj_celownik.x, obj_celownik.y )-10+random(20)
speed = 24
Kolizja wroga z pociskiem:
GML
health_enemy-= 15 +-irandom(5)//jezeli GM8.0
health_enemy-= 15 +-round(random(5))//jezeli inny GM</span>