tim260 Posted July 25, 2013 Posted July 25, 2013 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 IIYAMA Posted July 25, 2013 Moderators Posted July 25, 2013 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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