Types within types & blitzarrays

Blitz3D Forums/Blitz3D Beginners Area/Types within types & blitzarrays

Stevie G(Posted 2004) [#1]
I take it others have come across this ...

Type GameObjectType
	Field T.ObjectTemplateType
	Field ID
	Field Model
	Field Radius#
	Field Mass#
	Field Vx#, Vz#
	Field Life#
	Field Damage#
	Field Shield#
	Field Spin#
End Type

Type TeamType
	Field Member[ MaxMembers-1 ].GameObjectType		; game object no - Max 6 members
	Field Mother.GameObjectType						; game object no
	Field Up											; 0 to ( Members-1)
End Type


It seems that blitz won't allow me to use a blitzarray within a type to store the pointer to another type?!?

When I commet out the first field in the TeamType is works ok. Is there any way around this?


Stevie G(Posted 2004) [#2]
Oops ... should have been Member.GameObjectType [ MaxMembers-1]