you can put this in an objects init field:
setpos [getpos this select 0, getpos this select 1,x]
where x = height above ground
and then you can make a trigger or whatever with this as its activation:
dude dotarget object; dude dofire object
where dude is the guys name and object is the name of the object he's firing at....