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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parenting lights to monsters
mysteryman141 Offline
Junior Member

Posts: 17
Threads: 9
Joined: Nov 2015
Reputation: 0
#1
Parenting lights to monsters

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 
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.
03-26-2019, 02:48 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Parenting lights to monsters

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.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
03-27-2019, 05:05 PM
Find
Guest
Unregistered

 
#3
RE: Parenting lights to monsters

(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!
03-27-2019, 06:41 PM




Users browsing this thread: 1 Guest(s)