Jump to content

[SOLVED] The collision is not loading!


rusztamas

Recommended Posts

Hello guys!

We found a map, with a dff, col, and txd file. We wrote a script to it, and it was appearing in the game. But when we tried to stand on it, it just simply did not let us on it. What the problem could be?

The script:

addEventHandler('onClientResourceStart', resourceRoot, 
    function() 
        outputChatBox ( "Ez a resource válaszol.") 
  
        local txd = engineLoadTXD('files/name.txd',true) 
        engineImportTXD(txd, 4002) 
  
        local dff = engineLoadDFF('files/name.dff', 0) 
        engineReplaceModel(dff, 4002) 
  
        local col = engineLoadCOL('files/name.col') 
        engineReplaceCOL(col, 4002) 
        engineSetModelLODDistance(4002, 500) 
    end 
) 

Meta:

<meta> 
    <script src="script.lua" type="client" /> 
    <file src="files/name.txd" /> 
    <file src="files/name.dff" />> 
</meta> 

Debugscript:

118188908N_vtelen_www.kepfeltoltes.hu_.png

Link to comment

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...