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.

thanks that was what I was looking for

I just have a little problem understand this part:

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



Why does tank/turrets[n] = this?

Is it so the tank type knows which turret type belongs to it?