Remember the object obj_nbr has to have a collision box made with the comand MAKE OBJECT COLLISION BOX with a collision flag of 0.
And the get object collision x/y/z can't be used like I said, it has to be used like this:
collision_x#=get object collision x()
collision_y#=get object collision y()
collision_z#=get object collision z()
dec x#,collision_x#
dec y#,collision_y#
dec z#,collision_z#
position object obj_nbr,x#,y#,z#
The problem to me is how do you know which object's sliding collision data is being returned since you don't specify it in the command. Is it the last object collision has been tested on?
Take care
AtomR