Type Vector
X#,Y#,Z#
EndType
firstly you have to declare these as a float or string or integer
eg:
X# as float etc...
Function vMake_Vector(x#,y#,z#)
DimType Vector,v
v.X# = x#
v.Y# = y#
v.Z# = z#
EndFunction v
this array created in this function is local to thie function only
to create it as a typed array you need to use a line just under your type declaration
eg:
dim MOON(3) as MOON
then you may need to fill the data here or later on.
eg:
MOON(1).NUM = 1
MOON(1).NAME = "Havendoor"
MOON(1).ALIGNMENT = 1
MOON(1).ROTATION = 1
btw types only work in DBC with an alternative editor called DARKEDIT, it however cascades the types back into arrays for final usage and compiling.
DBP has native type access