Ok, so I have objects 5 to 20, all the same object assigned to group knights as for nights=5 to 20 next nights. Then I put all my working code into the loop knights {code}next nights, so this means all of the objects should do each command I set for all the objects seperately right? Well, when I come close to one object and his walk animations come to life then he follows me all the other objects also do the same animations to follow the first, but in place. So how do I make them all have the same code, but follow there own animations with in the for next loop, thanks, here is my code.
Edit, to make it more clear If one object is animated they all are animated at the same time.
for nights=5 to 20
oldx# = object position x(nights)
oldy# = object position y(nights)
oldz# = object position z(nights)
if enimyanim1=1 and idle=0 then loop object nights,1,59:move object nights,0
if enimyanim1=2 then loop object nights,67,97:move object nights,0.6
if enimyanim1=3 then loop object nights,102,134
x# = object position x(nights)
y# = object position y(nights)
z# = object position z(nights)
rem little spheres collide with all (0)
collide = sc_sphereSlide(0,oldx#,oldy#,oldz#,x#,y#,z#,littleRadius#,nights)
if collide>0
position object nights,sc_getCollisionSlideX(),sc_getCollisionSlideY(),sc_getCollisionSlideZ():move object nights,0
endif
enemy0 = CheckObjectCollisionArea(2,nights,350)
if enemy0 = 1 then enimyanim1=1
enemy1 = CheckObjectCollisionArea(2,nights,200)
if enemy1 = 1 then point object nights,object position x(2),object position y(nights),object position z(2):enimyanim1=2
enemy2 = CheckObjectCollisionArea(2,nights,90)
if enemy2 = 1 then point object nights,object position x(2),object position y(nights),object position z(2):enimyanim1=3
next nights
my signature keeps being erased by a mod So this is my new signature.