Something like this. Most important thing to remember is arrays start from zero
type point
x as float
y a float
z as float
endtype
type door
id as integer // sprite/objectid
vector as integer // vector id
pos as point // position
endtype
doors as door[]
Add elements to the array like so;
d as door
d.id = loadObject("door.3ds")
d.pos.x = GetObjectX(d.id)
d.pos.y = GetObjectY(d.id)
d.pos.z = GetObjectZ(d.id)
d.vector = CreateVector3(d.pos.x, d.pos.y, d.pos.z)
doors.insert(d)
Remove element from the array like so
doors.remove(5) // removes element # 5
More here