![]() |
Area Dissapears after use - 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: Area Dissapears after use (/thread-13121.html) Pages:
1
2
|
Area Dissapears after use - Shives - 02-05-2012 Hi I want to make a waterlurker,everything works but when the waterlurker kills me is the Area dissapeared and the waterlurker appears no more. What i have to do that the waterlurker appears again? (Sorry for bad English ![]() RE: Area Dissapears after use - JenniferOrange - 02-05-2012 I'm not too sure on this, but you can try adding CreateDataCache(); to your .hps. It's supposed to cache all of the textures and models until you tell it to destroy them. RE: Area Dissapears after use - Shives - 02-05-2012 (02-05-2012, 06:47 PM)JenniferOrange Wrote: I'm not too sure on this, but you can try addingThe Result Fatal Error ............................. ........................... main (7,17):Area_1'is not declared The Script: //////////////////////////// // Run first time starting map void OnStart() { AddEntityCollideCallback("Player", "Area_1", "Waterlurker", true, 9); AddUseItemCallback("", "Hammer", "Gate", "Kaputt", true); CreateDataCache(Area_1); } void Waterlurker(string &in asParent, string &in asChild, int alState) { SetEntityActive("waterlurker_1", true); } void Kaputt(string &in asItem, string &in asEntity) { SetEntityActive("Kaputt", true); SetEntityActive("Gate", false); SetEntityActive("Box", false); PlaySoundAtEntity("", "break_wood_metal3.snt", "Player", 0, false); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() RE: Area Dissapears after use - SilentStriker - 02-05-2012 (02-05-2012, 07:01 PM)Shives Wrote:CreateDataCache(Area_1);(02-05-2012, 06:47 PM)JenniferOrange Wrote: I'm not too sure on this, but you can try addingThe Result should be CreateDataCache(); RE: Area Dissapears after use - Shives - 02-05-2012 It doesn't works The game is no more Crashing but on the second try nothing happens ![]() RE: Area Dissapears after use - Ninami - 02-05-2012 Can you post your script? Easier to help ![]() EDIT: Nevermind I saw you posted it before xD Code: AddEntityCollideCallback("Player", "Area_1", "Waterlurker", true, 9); You should change the "true" to "false".
Because right now you're saying true to: "delete callback when used" you want that to be false.
RE: Area Dissapears after use - Your Computer - 02-05-2012 It's not that the area is disappearing, it's that monsters disappear when they kill the player and can't be respawned. Therefore trying to re-activate the monster that killed the player isn't going to work. You have to dynamically create the monster or have it pre-exist in the level editor. RE: Area Dissapears after use - Ninami - 02-05-2012 Oh I understood it as if the area disappeared and wouldn't work again. My bad RE: Area Dissapears after use - Your Computer - 02-05-2012 (02-05-2012, 11:29 PM)Ninami Wrote: Oh I understood it as if the area disappeared and wouldn't work again. My bad Well, he should also consider passing in false for AddEntityCollideCallback in either case. RE: Area Dissapears after use - Shives - 02-07-2012 It doesn't work Nothing happens |