Scripting items inside breakable entities? - 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: Scripting items inside breakable entities? (/thread-4780.html) |
Scripting items inside breakable entities? - Equil - 09-27-2010 I wanted to know if it's possible to script items inside say, a vase, through this little option here: For example I want to hide the key you need to open a door inside a breakable object in the room, is there another way to do this? Any assistance appreciated. RE: Scripting items inside breakable entities? - Neurological - 09-27-2010 I think should be possible a work around. Just an idea as i'm not so much experienced with scripts, but you may be able to attach the key to the vase and set it to not active, then with scriptmake the key active when the vase break. Don't know if is possible to spawn the key as debris. RE: Scripting items inside breakable entities? - Equil - 09-27-2010 Thanks for the reply, I'll do that as a temporary work around. Still, it'd be nice and convenient if you could add script-able items through that in-built option. Would there be any way to add items to that list? RE: Scripting items inside breakable entities? - Thomas - 09-27-2010 open the Entity.cfg file in the editor folder Look for the Object type and then there is a contained item object you can then add for types of entities that are contained. Or just change the input to a string input. RE: Scripting items inside breakable entities? - Equil - 09-27-2010 Thanks a bunch, that worked like a charm However I'm having this strange script error when I try to run the map through custom story now "Unexpected End of file (211, 1) Main" there's nothing even at line 211, and it's just a little below "OnLeave()". Really odd, since it was working fine just minutes ago, and I haven't touched the script. |