check that you are going in to the if statment with Print "I am in here".
for i=25 to 26
Rem enemies hit by players bullet
if object collision(11,i)>0 and enehealth(i).health#=>0
print "I am in here.":sync
AI Set Entity Hit i, X#, Z#
endif
next i
its away of checking that its going in to do something, if you don't see it then the condition was not met.
plus it might be quicker this way only need to check the one that hit, instead of all of them.
Rem enemies hit by players bullet
if object collision(11,0)<>0
enehit= object collision(11,0)
if enehealth(enehit).health#=>0
AI Set Entity Hit enehit, 0, 0
endif
endif
see if it works.
Dark Physics makes any hot drink go cold.