Creating the enemy entities

Blitz3D Forums/Blitz3D Programming/Creating the enemy entities

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.

Yeah something similar to this:


Type Alien

Field X
Field Y
Field Z

Field Mesh

End Type

Alien_Template=LoadMesh("Alien.3DS")



For AlienCounter = 1 to 10

New_Alien.Alien = New Alien

New_Alien\X = Rand(0-50,50)
New_Alien\Y = Rand(10,20)
New_Alien\Z = Rand(0-50,50)

New_Alien\Mesh = CopyEntity(Alien_Template)

Next