Arrays

Blitz3D Forums/Blitz3D Programming/Arrays

mtnhome3d(Posted 2008) [#1]
i'm just figuring out how to use arrays. and was wondering how do i put more than on mesh in to an array. i have several gun/weapons and i want them to be stored so i can swap through them and i figured an array would be best for this. so how do i add a mesh to the array after dimming it. and then how do i cycle through it.


KillerX(Posted 2008) [#2]
Dim Bullet(30)
Bullet(1) = loadmesh("Bullet.3ds")
For Loop = 2 to 30
Bullet(Loop) = copyentity(Bullet(1))
next


mtnhome3d(Posted 2008) [#3]
ok that makes sence thanks