I was just wondering, what the heck is this used for?

I click the folder icon and it opens a box that lists the other models in the level.
Posted By: xXxGuitar511
Re: What the heck is this? - 03/07/07 12:37
For attaching two models/sprites together...
Like if you wanted to attach a staff to the warlock...
I've never used it though, I just read the above somewhere once a long time ago...
Posted By: Frits
Re: What the heck is this? - 03/07/07 13:32
and you can attach some action to the attached entity;
Code:
action some_action
{
// wait for the entity where I am attached to
while(my.parent==null) {wait(1);}
while(1)
{
you=my.parent;
my.x=you.x;
my.y=you.y;
wait(1);
}
}
Posted By: xXxGuitar511
Re: What the heck is this? - 03/07/07 14:44
So it simply sets the parent property?
Posted By: Frits
Re: What the heck is this? - 03/07/07 15:07
Yes, you only have to choose the parent model and attach an action to the child model, so that the child model follows the parent model. Only thing you have to adjust is the origin position of the parent and the child, they must be the same for simple movement.
You guys are my new best friends. I just so happen to have a boss that is split up into several pieces and instead of ent_creating them, I can use parent.
Posted By: Blink
Re: What the heck is this? - 01/04/08 22:18
thanks for asking that question. i always wondered what it was for too,lol. so let me understand this, i have a model with plbiped behavior, and i have his staff, and want to add the fire behavior, like a flaming staff as it's action, and attach it to my warlock model, and both models can have an action, and can be used as long as they are in unison?