Shagwrath Posted May 12, 2013 Share Posted May 12, 2013 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
tim260 Posted May 14, 2013 Share Posted May 14, 2013 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
Shagwrath Posted May 14, 2013 Author Share Posted May 14, 2013 Ya that totally works. I guess I fired my brain the last few days, cause that was such a simple mistake. Thanks tim. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now