![]() |
How to make Candle Go out? - 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: How to make Candle Go out? (/thread-11454.html) Pages:
1
2
|
RE: How to make Candle Go out? - GreyFox - 11-22-2011 Code: //////////////////////////// Theres my script... It's just a test so I can do this later on. And what do you mean just put it in the void OnStart Parameters Code: //////////////////////////// Thanks -Grey Fox RE: How to make Candle Go out? - Your Computer - 11-22-2011 (11-22-2011, 02:10 AM)GreyFox Wrote: Mind Posting your Script real quick? Very odd, and I have a second question if you wouldn't mind. All my script had was SetLampLit in OnStart. As for your other question, why not just add the timer in OnEnter? (11-22-2011, 02:51 AM)GreyFox Wrote: Theres my script... It's just a test so I can do this later on. In that case you may want to add a debug message in the collide callback to see if it gets triggered. Is "Start" a Script area or PlayerStart area? PlayerStart areas don't "support" entity collisions. RE: How to make Candle Go out? - GreyFox - 11-22-2011 debug messages only show up in a dev enviorment correct? and "Start" is a Script/Trigger Area. Thanks -Grey Fox RE: How to make Candle Go out? - Statyk - 11-22-2011 (11-22-2011, 12:36 PM)GreyFox Wrote: debug messages only show up in a dev enviorment correct?Type something like this in your .hps: //______________________ void OnStart() { AddTimer("", TIME, "CALLBACK_FUNC_NAME"); } void CALLBACK_FUNC_NAME(string &in asTimer) { //What happens after the time runs out. } RE: How to make Candle Go out? - GreyFox - 11-23-2011 I Found out why it wasn't work. My .HPS was named Entance, instead of Entrance... Damn do I feel retarded. haha I Have another question though. I Don't use levers alot, and I Have a Bathroom, and I though it'd be cool if you could turn the water on and off. So I go the lever turning the water on just not off. would you mind helping me get it so when I pull up on the leave the particle system disappears. Code: //////////////////////////// Thanks -Grey Fox RE: How to make Candle Go out? - Your Computer - 11-23-2011 (11-23-2011, 02:09 AM)GreyFox Wrote: I Don't use levers alot, and I Have a Bathroom, and I though it'd be cool if you could turn the water on and off. One thing you should get used to doing is providing an internal name where allowed. You can't destroy a particle system if you don't have any way of differentiating it from the rest. PHP Code: void StartWater(string &in asEntity, int alState) |