What the heck is this?

Posted By: draculaFactory

What the heck is this? - 03/07/07 07:31

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.
Posted By: draculaFactory

Re: What the heck is this? - 03/07/07 17:06

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: JibbSmart

Re: What the heck is this? - 03/11/07 11:37

Quote:

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.


i wish i could ent_remove my boss

oh dear... that joke would have had so much more potential if i was in the workforce...

julz

EDIT: sorry! i don't normally spam but i just couldn't resist! i don't actually have something to contribute to this thread. did you get it working well?
Posted By: draculaFactory

Re: What the heck is this? - 01/04/08 19:15

LOL
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?
© 2023 lite-C Forums