Frictional Games Forum (read-only)
What's the "abEffects" parameter? - 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: What's the "abEffects" parameter? (/thread-14461.html)



What's the "abEffects" parameter? - Cranky Old Man - 04-03-2012

There's lots of functions listed at
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
that use the bool "abEffects", but nowhere is it explained closer than "Use effects.".
I tried setting it to be true for SetSwingDoorLocked(), but while the door unlocked, no additional effects occur. There is one key-opened swing-door in Amnesia, at the prison level, but it has this flag set to false.

What does abEffects do?

(If you have access to the wiki, I'd rather you update the wiki page, than answer me personally.)




RE: What's the "abEffects" parameter? - jens - 04-03-2012

abEffects will for example play sounds that are defined in the entity to be played on lock/unlock for a swing door. It can also be that for a lamp entity it means that the light will use the fade in/out properties, while if you put it to false, the light will be instant on or off.



RE: What's the "abEffects" parameter? - Cranky Old Man - 04-03-2012

I see. Wooden doors probably just don't have any defined for it. (Separate unlocking sounds are always played instead.)
Thank you. Smile