![]() |
How to reverse tinderbox ignite mechanic? - 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 reverse tinderbox ignite mechanic? (/thread-23514.html) |
How to reverse tinderbox ignite mechanic? - GoreGrinder99 - 10-06-2013 I have been trying to fiddle with reversing the tinderbox. What I want going is instead of having to light torches, candles, et cetera, I want to snuff them out with the use of a "tinderbox" (which obviously wont be a tinderbox but rather a re-usable inventory item similar to a lantern; infinite "tinderboxes"). So the main things I can't figure out: 1.How to disable the tinderbox ignite hover with the "x#) over the light source. 2.Reverse the lighting capability. Instead of having to lite, I need to put it out. I have noticed that the only light interaction there is is to lite it, and once lite, no longer can be interacted with. I have messed around with the SetLampLit but to no luck. Just a little extra something. I have found a way to completely disable the use of the lantern, remove the inventory icon and sounds and such but that first inventory space is still utilized by the lantern. Is there a way to remove the lantern completely? Everything else I've tried has resulted in a crash. RE: How to reverse tinderbox ignite mechanic? - Romulator - 10-06-2013 Dunno how to remove tinderbox thing without deleting the tinderbox drawing itself, nor the number, but you may be able to reverse the lighting by adding Interact Callbacks, then setting the candlestick to be unlit. Or if that doesn't work, you can put a Script Area around the candlestick(s) and/or lamp(s), which if interacted with causes the light to turn off. The only problem with this is the excessive script areas and quite strenuous lengths of coding required. RE: How to reverse tinderbox ignite mechanic? - GoreGrinder99 - 10-06-2013 (10-06-2013, 01:41 PM)Romulator Wrote: Dunno how to remove tinderbox thing without deleting the tinderbox drawing itself, nor the number, but you may be able to reverse the lighting by adding Interact Callbacks, then setting the candlestick to be unlit. The inventory isn't a problem, that has been taken care of, just the mouse over ignite "x#" display. I have tried callbacks but can only get them to work on pickup but that being the case, the light sources are extinguished upon the pickup. I guess interact areas would work, I didn't think about that. RE: How to reverse tinderbox ignite mechanic? - Apjjm - 10-06-2013 You should be able to perform: Code: void SetEntityCallbackFunc(string& asName, string& asCallback); Code: void cbIgnoreIgnite(string &in asEntity, string &in type) You could then create custom light entities, which have the lights + effects on by default, and then use the above approach to turn them off when they become lit. E.g.: Code: void cbIgnoreIgnite(string &in asEntity, string &in type) RE: How to reverse tinderbox ignite mechanic? - Daemian - 10-06-2013 For the icon, try these functions: ShowPlayerCrossHairIcons SetEntityCustomFocusCrossHair RE: How to reverse tinderbox ignite mechanic? - GoreGrinder99 - 10-06-2013 (10-06-2013, 03:15 PM)Apjjm Wrote: You should be able to perform: I got the particle system, billboard and light to remove but the internal particle of the candle itself still ignites. Guess I'll have to make a copy and remove it myself for my game. Thank you for the help!!! +1 |