Need help embedding collisions into a model
I'm trying to learn how to build collisions around native models that don't normally have it. For example, I'm using a model named
This model does not have collision embedded into itself. Instead, the collision for this model comes from
v_motel_mp.ybnwhich attaches to the interior of
If I spawn the bed into the game as-is, I can walk right through it
My thinking was to use 3D Studio Max with GIMS and emded my own collision boxes into the model like I've seen done with other native items. I imported
prop_tv_cabinet_03.ydrinto 3D Studio Max to see how it's structured because this model has collision emdedded already. I used that model as a guide to setup and structure my new bed model and threw in a large collision box to test with.
I exported the model out of 3D Studio Max and used OpenIV to convert it to a
ydrfile but when I stream the new model into the game, there's still no collision.
Can anyone help with this? Every video, thread or article on this subject seems to be super vague or outdated. I also bought and tried zmodeler 3 with the same results.
Any help or direction with this would be greatly appreciated. I've been debugging and researching this issue for days.
@DammitKenny did you set flags on collision mesh? For flag1 set map animal, map cover, map dynamic, map vehicle and map weapon for default and for Unk VertOffset part set 0,002 or 0,02
@Dekurwinator I can confirm that the flags are set however I can't find the "Unk VertOffset" settings on either of those scenes in the explorer.
Here's what I see
Note that all the flags are checked for Flags 2
I know what it looks like because I've seen it on someone else's screenshot here
Mine doesn't have that option. Is that critical for this?
@DammitKenny on your last screenshot you have Unk VertOffset part and its set to 0,0
@DammitKenny You should to take a look to one of the GTA modding masters:
@Dekurwinator that's not my screenshot, that's someone else's. I don't see that option on my end.
@MetaGTA thanks, I will definitely watch that!
@DammitKenny change EGIMS_V_Col_Box to editable mesh and add mesh modifier (in collision) in gims ( Unk VertOffset part is on mesh modifier) on this video Rarefacer schowed how to do this
@Dekurwinator Thanks, I was able to set the Unk VertOffset but there still isn't any collision. Would you mind taking a look at my file and proof-reading it for any mistakes? I feel like I'm missing a small step somewhere that another set of eyes could find. I linked the file here if you're able to check it out. Here are my scene settings if not: https://imgur.com/a/DuVyq
@DammitKenny i have 2015 3dsmax so cant open this file but ive exported it from openiv and added collision, tested in game working fine http://www.mediafire.com/file/p3w3g31ahg8j1h7/bed_with_coll.max its v2015 max file but you can open it with newer versions
@Dekurwinator thank you so much for you help. I tried your max file but I got the same results. I'm starting to think that this is a limitation with FiveM's streaming assets feature. I'm going to have to find another way to build the interior I have in mind. I was able to successfully stream ymaps into the server so I think I might do some research on that end and see if that is a viable solution for me. Thanks again!