Type Field initializers

Blitz3D Forums/Blitz3D Programming/Type Field initializers

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.

It might be an idea to return the instance.

Function CreateTypeWeapon.TypeWeapon()

   tw.TypeWeapon = New TypeWeapon
   tw\WeaponID% = 1
   tw\Ammo% = 500
   tw\FireRate% = 2
   tw\Velocity% = 100
   tw\Range% = 500
   tw\Damage% = 1
   tw\Force% = 1
   tw\Weight% = 50
   Return tw

End Function