InteractCallback problem - 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: InteractCallback problem (/thread-6107.html) |
InteractCallback problem - pawsUp1703 - 01-08-2011 Hey soory to ask againf or help.. I'm such a noob.. yeah but i started three days ago with teh editor so.. I have a key. when it's picked up i want something to happen. This is my script for this so far: Code: SetEntityPlayerInteractCallback("cellarkey2", "fear1", true); I hope someoen can help me^^ RE: InteractCallback problem - Russ Money - 01-08-2011 Try SetEntityPlayerInteractCallback("cellarkey2", "fear1", true); void fear1(string &in asEntity) { SetLampLit("torch_static01_5", false, true); SetLampLit("torch_static01_6", false, true); SetLightVisible("PointLight_11", false); GiveSanityDamage(20.0f, true); } RE: InteractCallback problem - pawsUp1703 - 01-08-2011 (01-08-2011, 01:24 PM)Russ Money Wrote: Try Thank you it's working now |