EDIT: ***SOLVED*** I included the file twice, in the IDE and with the #include command
This function
function positionCameraToObject(obj,thirdPerson)
position camera object position x(2),object position y(2),object position z(2)
rotate camera object angle x(2),object angle y(2),object angle z(2)
if thirdPerson=1
pitch camera down 10
move camera -30
endif
endfunction worked fine until I put it in a separate .dba and used the #include command. I get this strange error the I can't make any sense of. Any help with this manner is greatly appreciated. This is the error:
PARSER ERROR
------------
The name 'positionCameraToObject' duplicated in the program inside init_player.dba.
PROGRAM TRACE
-------------
obj,thirdPerson
position camera object position x(2),obje
ERROR TRACE
-----------
Failed to 'DoPreScanBlock::DoStatement(TokenID)'
Failed to 'DoPreScanBlock(0)'
Failed to 'MakeStatements'
Failed to Parse Program '(MakeDBM->MakeProgram)'
[b]