I can\'t seem to find why my logic isn\'t working, I\'m sure it\'s something really simple that I\'m just overlooking. But I have programmed it so that when the user moves around, the shotgun that I have loaded should follow the camera?
relevant code:
if( dbFileExist( lpGunFileName ) ){
dbLoadObject( lpGunFileName, gunid );
dbPositionObject(
gunid,
dbCameraPositionX(),
dbCameraPositionY(),
dbCameraPositionZ()+0.3f
);
dbRotateObject(
gunid,
dbCameraAngleX(),
dbCameraAngleY(),
dbCameraAngleZ()
);
dbLockObjectOn( gunid );
}
else
dbPrint( "Gun file path doesn't exist" );
Any help would be greatly appreciated
#ifdef __NEWBIE__
MakeAnAwesomeGame(lots of badies, lots of guns, lots of stuff to do, BIG level)
#endif