Frictional Games Forum (read-only)
custom entities/help with bugs - 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: custom entities/help with bugs (/thread-15796.html)



custom entities/help with bugs - darkgirl134 - 06-03-2012

hi there!
im new in this kind of stuff, so i have some really basic questions. i recently got an idea to do my own custom story, but unfortunately i had some trouble with the lights.. how can i turn off a light when walking to some area or colliding with something and likewise (i mean turning some on) ? i tried everything i could think of..
also i'd like to put there some custom writings on the wall or pictures maybe, but i didn't find how to do it either. i know it may sound really stupid and it's probably really easy but i just began with it so please help..
thanx! Smile


RE: custom entities/help with bugs - FragdaddyXXL - 06-03-2012

void SetLightVisible(string& asLightName, bool abVisible);
Use that to turn light objects (not lamp entities like torches and candles).



void SetLampLit(string& asName, bool abLit, bool abEffects);
Use that for lamp entities.

Someone will be better at explaining custom pictures than I.


RE: custom entities/help with bugs - darkgirl134 - 06-03-2012

yeah, i've tried that allright but it didnt work :/ i've checked the names in lvleditor twice and they are the same as in hps file..can it has something to do with setting the light active in the editor? i've unticked the 'active' box but the light was still there!..


RE: custom entities/help with bugs - Strembitsky - 06-03-2012

If you are using pointlights or boxlights or spotlights, you must use the function SetLightVisible.