Frictional Games Forum (read-only)
Attachments remain before and after entity active - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Attachments remain before and after entity active (/thread-15857.html)



Attachments remain before and after entity active - Streetboat - 06-05-2012

As the title said, I added some attachments to the brute model, and I'm pretty pleased with the end result for a more gruesome version of the monster, but I ran into a problem: the attachments (particle systems, lights, and billboards) all remain active within the level even when the monster isn't made active yet! Is there a way to work around this?


RE: Attachments remain before and after entity active - palistov - 06-05-2012

Assuming the brute is named "streetbrute", try setting "streetbrute_PointLight_1" invisible, for example. Connect billboards to lights, which you set inactive via the aforementioned method. As for particles, I don't think you can attach them to anything, so you might be S.O.L. there.


RE: Attachments remain before and after entity active - Streetboat - 06-05-2012

Brilliant, that worked perfectly. Now, the only problem is that sometimes the monsters despawn when they're out of the player's line of sight, thus still having the floating lights. How can I control whether or not they despawn when in sight?


RE: Attachments remain before and after entity active - Your Computer - 06-05-2012

(06-05-2012, 02:56 PM)Streetboat Wrote: How can I control whether or not they despawn when in sight?

http://www.youtube.com/watch?v=xWPU6frXmUY&list=PLD326789BC99530C8&index=19


RE: Attachments remain before and after entity active - Streetboat - 06-05-2012

Fixed it. Thank you. Smile