sync on : sync rate 0
AI Start
AI Make Path 1
AI Path Add Point 1,40,40
AI Path Add Point 1,40,-40
AI Path Add Point 1,-40,-40
AI Path Add Point 1,-40,40
for i = 2 to 5
load object "media\AI.X",1
load image "media\ai_5_D2.dds",50
texture object 1,50
AI Add Enemy i,1
AI Set Entity Speed i,10.0
next i
AI Entity Assign Patrol Path 2,1
AI Entity Assign Patrol Path 3,1
AI Entity Assign Patrol Path 4,1
AI Entity Assign Patrol Path 5,1
do
AI Update
sync
loop
I am trying to get enemies to patrol, but no sure how to make it work with objects.
i have been following a tutorial using cones, i managed to get that to work.
Anyway this is as far as i have got, any suggestions to get it working.