How would I create a multi-prop entity?
I know how to easily make an entity out of a simple prop, but I am unable to figure out how to take two props and merge them to create a single entity.
For example turning a simple tv entity into a full tv with stand entity.
[IMG]http://i.imgur.com/c6ONpPM.jpg[/IMG]
[IMG]http://i.imgur.com/3Z2DXlT.jpg[/IMG]
create an entity called sent_tv, sent_tv model is the table prop, inside it, create a prop_physics and save it inside sent_tv (ent.TV = ents.Create("prop_physics"))
Set parent ent.TV with table, and then use SetLocalPos and SetLocalAngles to setup position of tv
[QUOTE=gonzalolog;50772875]create an entity called sent_tv, sent_tv model is the table prop, inside it, create a prop_physics and save it inside sent_tv (ent.TV = ents.Create("prop_physics"))
Set parent ent.TV with table, and then use SetLocalPos and SetLocalAngles to setup position of tv[/QUOTE]
Thanks a whole bunch! This works perfectly.
Sorry, you need to Log In to post a reply to this thread.