Custom fragment class

Discussions about Coding and Scripting
Post Reply
User avatar
makemeunreal
Masterful
Posts: 506
Joined: Tue Mar 26, 2013 6:34 pm
Personal rank: UNREAL

Custom fragment class

Post by makemeunreal » Sat Dec 15, 2018 7:12 pm

Hey there!

I tried to make a custom fragment sublass one that would extend the lifespan of the fragment to the maximum limit. I managed to do that by setting it's lifespan to a pretty big number.

I also wanted to make the fragment have a lot more hitpoints, so it wouldn't vanish if gets shot. I failed to do this tho. Can't find the string in it's script that would refer to this property.

Can you help me with this please? :D

The fragments should have the same physic a book has. This should be a bit easier to implement.
UNREAL

User avatar
papercoffee
Godlike
Posts: 9276
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: Custom fragment class

Post by papercoffee » Sat Dec 15, 2018 8:59 pm

makemeunreal wrote: The fragments should have the same physic a book has. This should be a bit easier to implement.
Use a book and change the mesh.

JackGriffin
Godlike
Posts: 3766
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Custom fragment class

Post by JackGriffin » Sun Dec 16, 2018 3:44 pm

Don't use fragment, create your own subclass. The engine has code to clean up fragments and you will have a lot of trouble trying to stop it. You could consider using 'Pylon' as a base for an easy fix.
So long, and thanks for all the fish

Post Reply