Jump to content

Problems applying a collision ( .col file )


tim260

Recommended Posts

Posted

In a nutshell

When i apply my custom collision to an object, it returns true so it is applied, but the whole collision stops working and when i come close the object dissapears.

Which i really dont understand because i cant figure out what i am doing wrong.

Client Side Script

  
function replaceModel()  
armydff = engineLoadDFF("SAAF/des_a51infenc.dff", 16094) 
engineReplaceModel(armydff, 16094)   
col = engineLoadCOL("SAAF/countn2_5.col") 
engineReplaceCOL ( col, 16094 ) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)   

Meta

  
<meta> 
    <info author="A51 Custom Fence Collision" name="Custom Collision" version="1.0" type="script"/> 
    <script src="client.lua" type="client" cache="false"/> 
    <file src="SAAF/countn2_5.col" type="client"/> 
    <file src="SAAF/des_a51infenc.dff" type="client"/> 
</meta> 
  

  • Moderators
Posted

Maybe you should try to use it on another object. One with the same size.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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