Frictional Games Forum (read-only)
Parenting lights to monsters - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-80.html)
+---- Thread: Parenting lights to monsters (/thread-56305.html)



Parenting lights to monsters - mysteryman141 - 03-26-2019

Hey, is there a way to parent a spotlight and a billboard to a prop_movelinear entity, specifically the 01_01_leviathan_tunnels.ent. I've tried 
Code:
bool Entity_AttachToEntity(const tString &in asName,const tString &in asParentName,const tString &in asParentBodyName,bool abUseRotation,bool abSnapToParent=false,bool abLocked=false)

Entity_AttachToEntity("Billboard_monster","01_01_leviathan_tunnels_1","01_01_leviathan_tunnels_1_Body_1",true,false,true);

 but I get an error that reads "Could not find any entities with name 'Billboard_monster' for Entity_AttachToEntity.
Thanks.


RE: Parenting lights to monsters - Romulator - 03-27-2019

I think you're best to just duplicate the entity and then edit it in the Model Editor. In the Model Editor, you can attach the billboard and light directly to the body or bone of the entity so that it moves with the entity. The Model Editor does allow you to place lights and billboards as the are.

I recommend looking at other entities if you have to, to see how they attached their billboards/lights. I believe the Construct enemy has both billboards and lights attached to it.


RE: Parenting lights to monsters - Guest - 03-27-2019

(03-27-2019, 05:05 PM)Romulator Wrote: I think you're best to just duplicate the entity and then edit it in the Model Editor. In the Model Editor, you can attach the billboard and light directly to the body or bone of the entity so that it moves with the entity. The Model Editor does allow you to place lights and billboards as the are.

I recommend looking at other entities if you have to, to see how they attached their billboards/lights. I believe the Construct enemy has both billboards and lights attached to it.

Ahh, it never even occurred to me to create a modified copy, thabks!