Make static mesh killable?

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
jamesl22
Posts: 13
Joined: Wed Mar 10, 2010 10:05 pm

Make static mesh killable?

Post 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?
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Make static mesh killable?

Post by QuestOfDreams »

Use a StaticEntityProxy instead.
jamesl22
Posts: 13
Joined: Wed Mar 10, 2010 10:05 pm

Re: Make static mesh killable?

Post 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?
User avatar
GMer
Posts: 329
Joined: Thu Oct 25, 2007 4:49 pm
Location: On the rock in the 3rd solar orbit.

Re: Make static mesh killable?

Post 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.
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
Post Reply