Frictional Games Forum

Full Version: Parenting lights to monsters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.

Guest

(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!