Choosing units Python Part 1 (one soldier)

Subscribers:
1,520
Published on ● Video Link: https://www.youtube.com/watch?v=AwhpuVGTDzw



Duration: 23:40
28 views
0


intially I use the mouse over sensor to set if a property is true

then I use the mouse over sensor to get the name of the object that it is being triggered by

then I get a NavTarget from the object by cycling through it's children looking for a property 'Navi'

then I set it up to place the navTarget where the mouse clicks on the map, then I set it up so I can change which unit I am controlling.

Next video = creating a list of units to select.







Tags:
bge
AI
BGE AI
BGE Team AI
RTS Select