In Fortnite, there are special devices that are targets for destruction like this tomato.
The question is if I can somehow create the exact same object, with the same properties, but with my imported 3d model. Maybe I can create an object which will have this tomato as a parent. I thought about how to implement this through code, but haven’t figured out how to link the 3D model and the resulting device.
You can not change the mesh with the current Objective device, you can only use the predefined meshes from the gallery. Also the Objective device currently can NOT be reset/reused once destroyed.
However, the Explosive device is actually what you want to use. You can change the mesh/collider that is used. And it has a Reset()
method to allow you to reuse the target if needed.
How do I create my own device from a 3d model that will take damage and track damage? I also need it to be able to become invulnerable until the other objects are destroyed
Like I said above, with an Explosive device and a custom Verse device:
- Explosive device, set custom mesh
- Create custom device in Verse that references an instance of the Explosive device and listens to the destroyed event.
- Thru Verse you can Enable or Disable the Explosive device as needed.
Okay, thanks, but I still don’t quite understand how I can access the bomb and where I can see the methods that are responsible for various functions, such as invulnerability. It would be nice if there was some article on Verse that described this kind of syntax
Getting started with Verse:
And the Verse methods for explosive device:
Thank you so much!