![]() |
Candle fade - 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: Candle fade (/thread-11247.html) Pages:
1
2
|
RE: Candle fade - Your Computer - 11-09-2011 Post your script. RE: Candle fade - proshitness - 11-09-2011 void OnStart() { AddEntityCollideCallback("Player", "Lights_Out", "LampsOff_func", true, 1); } void OnEnter() { } void OnLeave() { } void LampsOff_func(string &in asParent, string &in asChild, int alState) { SetLampLit("torch_static01_1", false, true); SetLampLit("torch_static01_2", false, true); SetLampLit("torch_static01_3", false, true); SetLampLit("torch_static01_4", false, true); SetLampLit("torch_static01_5", false, true); SetLampLit("torch_static01_6", false, true); } void SetLampLit(string& asName, bool abLit, bool abEffects); RE: Candle fade - Your Computer - 11-09-2011 Try this: PHP Code: void OnStart() RE: Candle fade - proshitness - 11-09-2011 didn't work...=\ maybe i need to use something else then the torch_static01 RE: Candle fade - Your Computer - 11-09-2011 Do you have a script area in your map named "Lights_Out"? Do you have 6 torch_static01 entities in your map? RE: Candle fade - proshitness - 11-09-2011 Yes and yes do the torches need to be inside the area script? RE: Candle fade - Statyk - 11-09-2011 (11-09-2011, 03:47 PM)proshitness Wrote: Yes and yesNo they do not. They can be anywhere. the area is just there to trigger the script when the player walks into it. Try using a different torch and see if it does anything. Also, try to make sure the area is a "SCRIPT" area, not a insanity area, spawn area, etc. could be a simple little mistake. the script is fine. something is wrong in the level itself is my best guess. RE: Candle fade - proshitness - 11-09-2011 ok i changed the torches and still didn't work, i check and the area is a script what can i do? =\ RE: Candle fade - Statyk - 11-09-2011 I'll try to mimic this exact scenario to see if it works. If it does, something may be wrong between your .hps and map. do their names match exactly? example: NOT: - TorchMap.map - Torchmap.hps IS SHOULD BE: - TorchMap.map - TorchMap.hps Simple things make a BIG difference. One of my scripts failed because I typed it "PlaySoundatEntity..." the "a" was not capitalized. Just did it and it worked perfectly... Make sure your names of areas and torches match EXACTLY. I caught myself titling the area: "LightsOut" when in the script, it asks for "Lights_Out" again... Make sure EVERY LETTER matches EXACTLY. My only guess of this situation is that you didn't title something right. RE: Candle fade - proshitness - 11-09-2011 oh **** XDDDDD I WROTE MAIN_AREA.HSP and no HPS xDDDD Thanks alot!!!! just if you can help with this? http://www.frictionalgames.com/forum/thread-11280-post-101272.html#pid101272 and i want to know how to make a sound of wind with that. |