![]() |
Making Caveins (debri) - 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: Making Caveins (debri) (/thread-9893.html) |
Making Caveins (debri) - sgthale - 08-21-2011 What function would you use to make it so a cavein happens? As in the debris static object starting from invisible goes to visible and blocks a path. RE: Making Caveins (debri) - Selyp - 08-21-2011 SetEntityActive function should work nicely RE: Making Caveins (debri) - Elven - 08-21-2011 No. Sadly cavein is static item meaning that you cannot make it invisible and then visible. I had same problem in my own Ray of Hope custom story. There are 2 solutions what you can do. A) Use entities rocks, maybe scale them and have shit load of time and not guaranteed work. B) (what I used) Go into custom model editor, edit the cavein into entity and then you can use as Selyp says, first set it invisible and then via that upper function set it visible. Worked perfectly for me ![]() RE: Making Caveins (debri) - sgthale - 08-21-2011 (08-21-2011, 03:18 AM)Selyp Wrote: SetEntityActive function should work nicely How do you make the Debris prop start invisible? I did Code: SetEntityActive("cavein",false); To my Prop Static in the onStart() and it doesnt work (08-21-2011, 03:21 AM)Elven Wrote: No. Sadly cavein is static item meaning that you cannot make it invisible and then visible. I had same problem in my own Ray of Hope custom story. Where would I save the new .ent? Because If I was to distribute this story Id like it to be included with it :I RE: Making Caveins (debri) - Elven - 08-21-2011 First of all into your entities. What I did was that I went into my amnesia folder. Clicked entities and made there new folder called "editedStuff" and put that inside there. You HAVE TO do that to use it in ur own file. Of course you can save it into debris as well, but I do not recommend that way. Then you go into amnesia folder and then: custom_stories/Storyname/entities/editedStuff/yourfilename.ent If we take that Storyname is your custom story name. This is must, because players need to have that fail as well. You need it for editing, players need it to view it ![]() RE: Making Caveins (debri) - sgthale - 08-21-2011 BAH it only included the model not the physics collision RE: Making Caveins (debri) - Elven - 08-21-2011 I dont know how to help you more, sadly ![]() ![]() RE: Making Caveins (debri) - Kurton - 08-21-2011 Look in Entities > Special. There's "cave_in" and "cave_in_destroyed" which should work nicely. RE: Making Caveins (debri) - MrBigzy - 08-23-2011 Yea, there's both static and entity based cave-ins in the resources. |