Ok Its Shooting Bassically,
Ive used
Sc_SetupObject ( 4, 0, 2 ); For My Box Which Is Positioned At The Gun.
and
Sc_SetupCOmplexObject ( 100, 0, 2 ); For My Terrain.
Here Is My Shooting Code
void ShootGun ()
{
dbPositionObject ( 4, dbObjectPositionX(3), dbObjectPositionY(3), dbObjectPositionZ(3) );
dbRotateObject ( 4, dbObjectAngleX(2), dbObjectAngleY(2), dbObjectAngleZ(2) );
oldx = dbObjectPositionX(4);
oldy = dbObjectPositionY(4);
oldz = dbObjectPositionZ(4);
dbMoveObject ( 4, -10000 );
newx = dbObjectPositionX(4);
newy = dbObjectPositionY(4);
newz = dbObjectPositionZ(4);
dbMoveObject ( 4, 10000 );
collide == SC_RayCast ( 4, oldx, oldy, oldz, newx, newy, newz, 0 );
dbText ( 0, 10, dbStr( collide ) );
}
So Is When U Shoot A Collision Is Made, It Tells You Which Object, But It Always Returns 0 (No Collisions)
So Any Ideas>?
Cheers
Tv.