![]() |
movable books - 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: movable books (/thread-16253.html) |
movable books - liamthespy - 06-17-2012 I was wondering if there were any tutorials for this? I can't seem to find any ( judging by how I missed the roman numeral props, I'm probably just too stupid to find it. ) Right now I'm trying to use //////////////////////////// // Run when entering map void OnEnter() { SetEntityPlayerInteractCallback("bookmoveg", "trapopen", true); } void SetMoveObjectState(string &in item) { SetPropHealth("barrier", 0); SetEntityActive("barrier", false); } //////////////////////////// // Run when leaving map void OnLeave() { } to cause the movable book to destroy a barrier keeping a hatch closed, but it ain't working. I checked the engine scripts page on the wiki but theres nothing relevant to the book. RE: movable books - i3670 - 06-18-2012 Change void SetMoveObjectState(string &in item) to void trapopen(string &in item) |