Hardpoints

BlitzMax Forums/BlitzMax Programming/Hardpoints

rofl

for some reason this works

Local Torpedo1HP=ship.x + 15 * Cos(ship.angle) + 15 * Sin(ship.angle)
Local torpedo2HP=ship.y + 15 * Sin(ship.angle) - 15 * Cos(ship.angle)
Local Torpedo3HP=ship.x - 15 * Cos(ship.angle) + 15 * Sin(ship.angle)
Local torpedo4HP=ship.y - 15 * Sin(ship.angle) - 15 * Cos(ship.angle)

hp1&2 are for the first torpedo object
3&4 are for the second.

my offset is 15 so i didnt feel i needed to create a variable for it. if i need to later because of different ships fine, but right now, 15 15, gets it off to the areas I want.