Entities and Actions

Posted By: Magela

Entities and Actions - 04/19/08 23:19

Is it possible to have an entity with more than one action assigned to it.
For example, if I want a plane to move its propeler and at the same time
I wish for it to chase another plan, can I assign more than one action to it?

Thanks!
Posted By: Blade280891

Re: Entities and Actions - 04/20/08 00:03

you might need to have the propeler as a seperate model and the plane as another.
You can use a code to add the propeler to the plane model.
Posted By: Nems

Re: Entities and Actions - 04/20/08 03:21

Sure, create your seperate actions as functions then call them when needed in the aeroplane action.
You can have a s many as you want really.

action aeroplane
{
...
while(1)
propeller():
...
}
Posted By: Magela

Re: Entities and Actions - 04/28/08 23:52

Thanks so much for the information!
What about if one og my entities has default animation
(Such as a moving propeler), how do I retain this behavior
while adding additional actions to it?

Thanks,

Magela
Posted By: tompo

Re: Entities and Actions - 04/29/08 00:14

You may do this with one model... just create bones at pivot center of each propeller, attach verticles and use ent_bonerotate function.
Or do it with different models using vec_for_vertex to attach models then change roll or use simple animation.
Hope will helpful \:\)
© 2023 lite-C Forums