Enable debugging output by pressing F8 and entering the command: debugscript 3
Then insert outputDebugString as show below and run the script again,
function ReplaceObject ( )
txd = engineLoadTXD( "name.txd" )
dff = engineLoadDFF( "name.dff", 0 )
engineImportTXD( txd, 1257 )
engineReplaceModel( dff, 1257 )
outputDebugString( "ReplaceObject "
.. " txd:" .. tostring(txd)
.. " dff:" .. tostring(dff)
)
end
addEvent ( "replaceObj", true )
addEventHandler ( "replaceObj", root, ReplaceObject )