Jump to content

Custom Map HELP PLEASE!


kewiiNNN

Recommended Posts

Posted

i tried to put a custom rally map inside server but it works and everything but when i place the parts of map i fall through except 1 part.i tried other maps because i wanted to know if its a bug but other maps also do this. this is the code

function map() 
    txd = engineLoadTXD ( "uk.txd" ) 
        engineImportTXD ( txd, 2134 ) 
        engineImportTXD ( txd, 2137 ) 
        engineImportTXD ( txd, 2133 ) 
        engineImportTXD ( txd, 2138 ) 
    col = engineLoadCOL ( "uk_rally.col" ) 
    col1 = engineLoadCOL ( "uk_rally.col" ) 
    dff = engineLoadDFF ( "uk1.dff", 0 ) 
    dff1 = engineLoadDFF ( "uk2.dff", 0 ) 
    dff2 = engineLoadDFF ( "uk3.dff", 0 ) 
    dff3 = engineLoadDFF ( "uk4.dff", 0 ) 
    engineReplaceCOL ( col, 2134 ) 
    engineReplaceCOL ( col1, 2137 ) 
    engineReplaceCOL ( col, 2133 ) 
    engineReplaceCOL ( col, 2138 ) 
    engineReplaceModel ( dff, 2134 ) 
    engineReplaceModel ( dff1, 2137 ) 
    engineReplaceModel ( dff2, 2133 ) 
    engineReplaceModel ( dff3, 2138 ) 
    engineSetModelLODDistance(2134, 2000) 
    engineSetModelLODDistance(2137, 2000) 
    engineSetModelLODDistance(2133, 2000) 
    engineSetModelLODDistance(2138, 2000) 
  
end 
  
function chat() 
        outputChatBox('Willos Rally', player, 0, 255, 0) 
end 
  
setTimer ( map, 1000, 1) 
addCommandHandler("reloadmap",map) 
  
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), 
    function() 
        engineRestoreCOL(2134) 
        engineRestoreCOL(2137) 
        engineRestoreCOL(2133) 
        engineRestoreCOL(2138) 
        engineRestoreModel(2134) 
        engineRestoreModel(2137) 
        engineRestoreModel(2133) 
        engineRestoreModel(2138) 
        destroyElement(dff) 
        destroyElement(dff1) 
        destroyElement(dff2) 
        destroyElement(dff3) 
        destroyElement(col) 
        destroyElement(txd) 
    end 
) 

  • Moderators
Posted

Probably 1 of your models contain collision of the other models. Which you can only use when you place the exact same objects on the exact same order next to each other.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...