Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Post a New Reply
Reply to thread: Parenting lights to monsters
Username:
Post Subject:
Post Icon:
Your Message:
Smilies
Angel Angry Blush Confused
Dodgy Exclamation Heart Huh
Idea Sleepy Undecided Smile
Wink Cool Big Grin Tongue
Rolleyes Shy Sad  
Post Options:
Thread Subscription:
Specify the type of notification and thread subscription you'd like to have to this thread. (Registered users only)




Human Verification
Please tick the checkbox that you see below. This process is used to prevent automated spam bots.


Thread Review (Newest First)
Posted by - 03-27-2019, 06:41 PM
(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!
Posted by Romulator - 03-27-2019, 05:05 PM
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.
Posted by mysteryman141 - 03-26-2019, 02:48 AM
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.