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?
Make static mesh killable?
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: Make static mesh killable?
Use a StaticEntityProxy instead.
Re: Make static mesh killable?
Hi,QuestOfDreams wrote:Use a StaticEntityProxy instead.
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?
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.
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.
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56