Frictional Games Forum (read-only)

Full Version: What's the "abEffects" parameter?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There's lots of functions listed at
http://wiki.frictionalgames.com/hpl2/amn..._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.)

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.
I see. Wooden doors probably just don't have any defined for it. (Separate unlocking sounds are always played instead.)
Thank you. Smile