I'm making a top down 3d shooter and I'm currently working on the bullet system. I'm trying to just make the bullet move forward in the current direction the player is facing when the bullet is shot. This is what I have so far but it doesn't work as the bullet goes straight into the ground :/ any ideas?
if (player_shooting==false)
{
dbSetObjectToObjectOrientation(13,2);
dbPositionObject(13,dbObjectPositionX(2),dbObjectPositionY(2),dbObjectPositionZ(2));
}
if (dbKeyState(18)==1)
{
player_shooting=true;
}
if (player_shooting==true)
{
dbMoveObject(13,2);
}