Anyone need help? - 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: Anyone need help? (/thread-7825.html) |
RE: Anyone need help? - Kyle - 05-11-2011 Yup, no "if" statements involved. Any more questions? RE: Anyone need help? - Simpanra - 05-11-2011 (05-11-2011, 10:55 PM)Ge15t Wrote: Oh wow that is easy! Also really simple, I cant believe I didnt think of that lol. Thanks heaps! Wow! nice one kyle, i never thought of that! I use a different method xD { AddEntityCollideCallback("Player", "Area_1", "Func1", true, 1); AddEntityCollideCallback("Player", "Area_2", "Func2", true, 1); } void Func1(string &in asParent, string &in asChild, string intalState) { SetEntityActive("Area_2", true); } void Func2(string &in asParent, string &in asChild, string intalState) { What you want to happen here } Using this method i set the entity (the area) inactive in the editor so it only becomes active when i walk into Area_1 =) Similar idea though ^_^ RE: Anyone need help? - Ge15t - 05-12-2011 Hi there, another problem! Code: void OnStart() Code: void PianoPlayCallback(string &in asParent, string &in asChild, int alState) So when I hit the area, it calls this function which activates point lights and candles, and the sound effect, so its like as i touch the bottom of the stairs, lights activate at the top and haunting piano music starts playing to phantom pianos.. But what happens is the lights are off and DONT come on, and the point lights STAY on, even though I deactivated both the candles and the pointlights. Any tips? RE: Anyone need help? - Kyle - 05-12-2011 One time, I was designing a light time system that is like a full day that then switched every 10 minutes to the next hour. But when I tried it, it didn't work and nothing happened. Suggestions: 1. If there is a .mapcache file, delete it. 2. Check to see if you actually did deactive the lights. 3. Check the script in case you somehow set them active before you wanted to. RE: Anyone need help? - Ge15t - 05-12-2011 (05-12-2011, 10:55 AM)Kyle Wrote: One time, I was designing a light time system that is like a full day that then switched every 10 minutes to the next hour. But when I tried it, it didn't work and nothing happened. Yeah theres a .map_cache file but its 20mb.. are you sure I should delete it? RE: Anyone need help? - Kyle - 05-12-2011 You can delete it. It just makes the level load faster. It will get replaced by an updated one later on. RE: Anyone need help? - Dominic0904 - 05-12-2011 Sorry to basically be reposting this, dunno if you missed it Kyle but it was about the doors that the grunt was hitting Quote:Aha, thanks again dude...one minor other thing...Testing the map, I hid in a cabinet after the monster saw me. He started to hit the doors, but the doors don't seem to be breaking. He's hit them a good ten times roughly now. I haven't got "DisableBreakable" box checked, maybe he's just a weakling... that's what I said, dunno if you just didn't know or missed it RE: Anyone need help? - Kyle - 05-12-2011 Oops, sorry. I think the monster hits random damages between it's low and high. Or it just depends on the health of the door. It also might depend if he seen you not. RE: Anyone need help? - Ge15t - 05-13-2011 Code: void PianoPlayCallback(string &in asParent, string &in asChild, int alState) Ok so i managed to get the lights to come on, but the point lights either stay active (if they are checked 'active' in the editor) or stay off (if they are unchecked). I deleted my cache, but no luck so far with the point lights. RE: Anyone need help? - Acies - 05-13-2011 Ge15t: Alternative 1 (not sure of this one): Spoiler below!
Alternative 2 (Will work for sure): Spoiler below!
|