Page 1 of 1
Make static mesh killable?
Posted: Thu Mar 18, 2010 7:15 pm
by jamesl22
Hi,
I am trying to make it so if you shoot a tree it falls down. I have it placed there with staticmesh. I have tried using destroyablemodel but that just crashes when the engine starts. How can I do this?
Re: Make static mesh killable?
Posted: Sat Mar 20, 2010 12:35 pm
by QuestOfDreams
Use a StaticEntityProxy instead.
Re: Make static mesh killable?
Posted: Fri Apr 02, 2010 2:04 pm
by jamesl22
QuestOfDreams wrote:Use a StaticEntityProxy instead.
Hi,
I've read the help section on it but im onsure on how to make it killable. I managed to get a tree to come up using StaticEntityProxy but how do I make that tree killable?
Re: Make static mesh killable?
Posted: Sat Apr 03, 2010 3:54 am
by GMer
In the entity Attributes tab:
Set the szDefaultAction option to an animation of the tree just being a tree (Standing)
Set the szDeathAction option to an animation of the tree falling
Set AttributeAmt is the health of the tree, when this reaches 0, the entity will play the death animation (in this case, the tree falls)
Set Death Disappear to false, as when true, the tree will disappear after the death action is done.