Jump to content
The Dark Mod Forums

Recommended Posts

Posted

As mentioned in this post:

https://wiki.thedarkmod.com/index.php?title=Combined_light_entities#Example_entities

Quote

Setting a spawnarg on the attached entity is simply done by setting the spawnarg set SPAWNARGNAME on ATTACHMENTNAME on the base entity. SPAWNARGNAME is the name of the spawnarg, while the attachment name can be looked up in the entityDef for the base entity, e.g. in DR by checking the "Show inherited" in the entity inspector.

The ATTACHMENTNAME is defined as name_attach spawnarg on either the base entity or one of its attached entities.

In the entity atdm:sconce_2candles_rigid there's no name_attach . I think the name_attach should be present inside the def file?

Maybe there are more def files where no name_attach is present. For example:

atdm_ship_lamp_lit
atdm_standing_chandelier_3_candles
atdm_lamp_hanging02

Posted (edited)

The entities you mention don't have a def_attach for the light so they don't need a name_attach.  If you want to change the light properties you can do it directly on the entity instead of using 'set key on name_attach' like you would on other 'combined' light entities.

I don't know what these types of entities are called or how they are put together (I haven't looked into it), but that's the difference in how you customise them.  Maybe they inherit from some parent that combines lights and models instead of using attachments.

I think in that newbie question thread the sconce object was just an entity that someone forgot to add the name_attach spawnargs on.

Edited by Frost_Salamander

TDM Community Github: https://github.com/thedarkmodcommunity

My fan missions:

With Kerry000: The Hare in the Snare, Part 1, 

The Lieutenant Series: In Plain Sight  High Expectations Foreign Affairs A Reciprocal Gambit

Posted (edited)
2 hours ago, Frost_Salamander said:

The entities you mention don't have a def_attach for the light so they don't need a name_attach.

atdm:sconce_2candles_rigid  and  atdm_standing_chandelier_3_candles  do have a def_attach.

Yeah ok the other two work differently.

2 hours ago, Frost_Salamander said:

I think in that newbie question thread the sconce object was just an entity that someone forgot to add the name_attach spawnargs on.

I think it would be more useful if the name_attach is already in the def file.

Edited by datiswous
Posted
22 minutes ago, datiswous said:

I think it would be more useful if the name_attach is already in the def file.

Agreed! Why not file a bug report?

  • Like 1

TDM Community Github: https://github.com/thedarkmodcommunity

My fan missions:

With Kerry000: The Hare in the Snare, Part 1, 

The Lieutenant Series: In Plain Sight  High Expectations Foreign Affairs A Reciprocal Gambit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      German Intelligence (BND) just revealed, why MS Outlook is down: even the MS CEO has been seduced by a Chinese spy and the BND just published a convincing picture of the agent:

      Way to go, lads!
       
       
      · 2 replies
    • JackFarmer

      I will NOT return to Discord. Who wants to try something new?
       
      · 12 replies
    • JackFarmer

      I do not understand why Gilmour/Waters trash the "Atom Heart Mother" album and wish for that "all existing copies get dumped".
      I think it is a great recording. Is there something wrong inside my twisted little brain?
      · 3 replies
    • revelator

      Asus ROG strix x570-E gaming ryzen 3700x 32 gb ram radeon RX9070XT 10 tb ssd space (all full)
      · 5 replies
    • The Black Arrow

      I was playing Doom 3, and I learned how to edit maps text-by-text, this should help me a lot with finding secrets and locations I hope.
      That is, if I feel sneaky and greedy...Which I always do, can't get enough 100% a mission.
      · 3 replies
×
×
  • Create New...