![]() |
Entity is visible, even when not 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Entity is visible, even when not active (/thread-5154.html) |
Entity is visible, even when not active - ThePaSch - 10-22-2010 Hi, in my Custom Story, I have the player search for a book. Then, he has to bring it to a table to make the book in the player's hands disappear and to have an open book appear on the table ("Opening the book on the table"). For that, I have switched the open book to being inactive. However, even with a "void OnStart {}" script file (I tested it), it IS visible and collides from the beginning. I have checked everything, and the book is neither active, nor have I forgotten to save or something. This is probably a bug, but maybe I'm also just too stupid and missed something. As I said, it's not possible for it to be a scripting error. RE: Entity is visible, even when not active - jens - 10-22-2010 Books are static props, which are a special form of entities that are only static. so they can not be scripted. You have to take a book entity and make a new special entity that is a normal object entity. RE: Entity is visible, even when not active - ThePaSch - 10-22-2010 (10-22-2010, 06:19 PM)jens Wrote: Books are static props, which are a special form of entities that are only static. so they can not be scripted. You have to take a book entity and make a new special entity that is a normal object entity. Alright, I did that. It's now an object, subtype "Grab". But now, the book doesn't appear when I want it do do so. Here's the function: Code: void SolveBookPuzzle(string &in asParent, string &in asChild, int alState) { EDIT: Nope, nevermind, it's just me being stupid (and not knowing how to create a functional entity). It doesn't even show when I set it to active. Oh well, I guess I need to do it another way. Yay me. |