![]() |
Candle's off! - 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: Candle's off! (/thread-4619.html) |
Candle's off! - anzki - 09-20-2010 Code: SetLampLit("Candle01", [], []); ![]() RE: Candle's off! - Pandemoneus - 09-20-2010 SetLampLit(string& asName, bool abLit, bool abEffects); SetLampLit("Candle01", false, true); But you should probably post your script, I don't think the problem lies within that line. RE: Candle's off! - anzki - 09-20-2010 (09-20-2010, 05:24 PM)Pandemoneus Wrote: SetLampLit(string& asName, bool abLit, bool abEffects); Code: void OnStart() EDIT: And entity name's are right. RE: Candle's off! - Thomas - 09-20-2010 CookKeyTaken(string &in asEntity) should be CookKeyTaken(string &in asEntity, string &in asType) RE: Candle's off! - anzki - 09-20-2010 Hmm... Still not working... Here's full code considering the candles or the key: Code: void OnStart() RE: Candle's off! - Pandemoneus - 09-20-2010 Thomas is actually wrong. ![]() If you use SetEntityPlayerInteractCallback the function to call only needs (string &in asEntity). I don't see what's wrong with your code, would you please bother uploading your map + script file? ![]() And you should use AddDebugMessage("Message", false); to see if every function works. RE: Candle's off! - jens - 09-20-2010 You should not use SetEntityPlayerInteractCallback for this. Instead use the level editor and enter a callback in the first input field for an entity. If you look at the tool tip you can see it can be used for things like OnPickup, which is what you do in this case. And when you do this the correct is CookKeyTaken(string &in asEntity, string &in asType) RE: Candle's off! - Thomas - 09-20-2010 I was right in a wrong way ![]() (or wrong in a right way??) RE: Candle's off! - Pandemoneus - 09-20-2010 (09-20-2010, 08:04 PM)jens Wrote: You should not use SetEntityPlayerInteractCallback for this. Instead use the level editor and enter a callback in the first input field for an entity. If you look at the tool tip you can see it can be used for things like OnPickup, which is what you do in this case. Sorry, oh mighty Jens. ![]() I just saw that I used SetEntityCallbackFunc(string& asName, string& asCallback); in my script, which has the same effect as what you described. RE: Candle's off! - anzki - 09-21-2010 Thank's for everyone ![]() ![]() |