I thought I had this figured out, but I keep getting inconsistent results. Or perhaps, I have forgotten what I learned, since I haven't messed with this command in awhile.
If I do ObjectRayCast(1,x,y,z,nx,ny,nz) Shouldn't it return a 0 if there is another object between the ray? Or is this only testing to see if the one object is in the ray path?
Conversely, if I send out a ray of ObjectRayCast(0,x,y,z,nx,ny,nz) should it not return the first object hit? Instead I get the object hit at the end of the ray, and the object in-between is only hit if I put that object ID in(so I know its not a case of me inadvertently turning off collision mode).
I could have sworn I have mentioned this before, but the documentation is wrong. ObjectRayCast() only returns a 1 if you put in the ObjectID.
Doc page
Quote: "will return the number of the object hitt first, or 0 for no collision"
Would be nice to get that fixed.