I'm building a RTS game

here is how to do it
- build a test landscape (matrix is best i think)
- place a few test units (just cubes or something)
- program how to click on 3d units with the 3d mouse (this is a tricky part... if you can't figure it out, go to the code snippets forum and enter RTS in the search bar and you'll find what you need

)
- Program unit movement whet clicking on a unit and the on the matrix (i did that with arrays, 1 for the Xtarget,1 for the Ztarget, and 1 for movestatus (if unit moves or not) and if you click on the matrix the unit points at Xtarget and Ztarget and moves toward it, works awfully good

)
- Program building buildings (this isnt too hard)
- Program unit collision with buildings(you shouldn't use the object collision(BLABLABLA) function, because that crunches your machines power to almost zero

, instead you should use positions, here's a snippet:
if object position x(object1)>object position x(object2)-50
if object position x(object1)<object position x(object2)+50
if object position z(object1)>object position z(object2)-50
if object position z(object1)<object position z(object2)+50 if object position y(object1)>object position y(object2)-50 if object position y(object1)<object position y(object2)+50
rem ### enter what to do next ###
endif
endif
endif
endif
endif
endif
this means within a range of 50 the object will collide with the building
- Build the rest you like... im not there yet
I hope this brings you further
Juzt a dude who likez progging