@demons breath
Well, here is an example of how to place the mines at different angles relative to the direction your boat is facing. In this example, there is a cone that represents the boat. The direction the cone is pointing is the front. The cone will slowly rotate to show that it's y angle is changing (the direction it's pointing). If you press the arrow keys, the corresponding key will place a mine to that side of the cone. The premise is, whatever value the yangle of the boat is, get an offset from that in the direction you want to place the mine, and use newxvalue and newzvalue and that offset angle to place the mine. By changeing the offset angle, you could place a mine 360 degrees around the boat at whatever distance you choose.
autocam off
hide mouse
cls 0
sync on
sync rate 60
cls 0
rem make a matrix for reference
make matrix 1,1000,1000,10,10
rem make a cone as the boat
make object cone 1,50
position object 1,500,25,500
xrotate object 1,90
fix object pivot 1
sync
rem make 4 spheres as mines
for n=101 to 104
make object sphere n,15
color object n,rgb(255,0,0)
hide object n
next n
position camera 500,200,200
point camera 500,0,500
rem main
do
`cls
text 0,0,"Use arrow keys to drop mines on sides of boat"
rem rotate boat
yang#=wrapvalue(yang#+1)
yrotate object 1,yang#
objx#=object position x(1)
objy#=object position y(1)
objz#=object position z(1)
if upkey()=1
minex#=newxvalue(objx#,yang#,100)
minez#=newzvalue(objz#,yang#,100)
position object 101,minex#,0,minez#
show object 101
repeat
sync
until upkey()=0
endif
if downkey()=1
myang#=wrapvalue(yang#-180)
minex#=newxvalue(objx#,myang#,100)
minez#=newzvalue(objz#,myang#,100)
position object 102,minex#,0,minez#
show object 102
repeat
sync
until downkey()=0
endif
if leftkey()=1
myang#=wrapvalue(yang#-90)
minex#=newxvalue(objx#,myang#,100)
minez#=newzvalue(objz#,myang#,100)
position object 103,minex#,0,minez#
show object 103
repeat
sync
until leftkey()=0
endif
if rightkey()=1
myang#=wrapvalue(yang#+90)
minex#=newxvalue(objx#,myang#,100)
minez#=newzvalue(objz#,myang#,100)
position object 104,minex#,0,minez#
show object 104
repeat
sync
until rightkey()=0
endif
sync
loop
Enjoy your day.