Jump to content

Custom .col


Recommended Posts

I made a custom object, textured and exported from 3dsmax with Kam's Gta Scripts, The texture and the mesh both show, however, when I export the collision (.col) and load all 3 onto my server as a resource, no collision can be made with the object.

I've used colleditior 2 and Kam's Gta Scripts to try to make the col, and view it, and it appears to exist should work but it does not:

here's how I've scripted the resource, and ill also include the .col .txd. and .dff

  
client.lua 
  
function resourceStart() 
    txd = engineLoadTXD("materials/island.txd") 
        engineImportTXD (txd,1337) 
    col = engineLoadCOL("meshes/island.col") 
    dff = engineLoadDFF("meshes/island.dff",1337) 
        engineReplaceModel(dff,1337) 
     
    engineSetModelLODDistance(1337,300) 
end 
  

If anyone has any ideas or help I would REALLY appreciate it, kinda stuck and exhausted youtube and google

FILES:

http://mta.bobogames.net/

Link to comment

You load the Collision file but where do you apply/replace it?

thinks this will fix it

  
function resourceStart() 
    txd = engineLoadTXD("materials/island.txd") 
        engineImportTXD (txd,1337) 
    col = engineLoadCOL("meshes/island.col") 
    dff = engineLoadDFF("meshes/island.dff",1337) 
        engineReplaceModel(dff,1337) 
        engineReplaceCOL ( col, 1337 ) 
        engineSetModelLODDistance(1337,300) 
end 
  

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