A tank with 5 turrets (types)

Blitz3D Forums/Blitz3D Programming/A tank with 5 turrets (types)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm a bit rusty but you prolly want something like this:

Type turretType
	Field rotation#
	Field elevation#
End Type

Type tankType
	Field turrets.turretType[4]
End Type

tank.tanktype = New tanktype

For n = 0 To 4
	this.turretType = New turretType
	this\rotation = 45
	this\elevation = 10
	tank\turrets[n] = this
Next