[SCRIPT] Make things Interactive? [FIXED] - 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: [SCRIPT] Make things Interactive? [FIXED] (/thread-24362.html) |
Make things Interactive? [FIXED] - SilentHideButFine - 01-13-2014 Hi there i'm working on my current mod "Hopsital Of Horror" and i can't remember how to make entites to interact , so for examepl Player clicks on a lets say a body then he found something , im trying to remember but been a while sence i was creating this mod , and i would love to see if someone helped me with this one , please help me ! UPDATE: got everything to work but it dosn't work with my keycard open door scripts? it has same name with "Sec_blue_1" :O here is the script " void doctorinteract(string &in asEntity) { SetMessage("Mes", "bodymessage", 15); GiveItem("Sec_Blue_1", "Sec_Blue_1.ent", "Bluecard", "Sec_Blue.tga", 1); } " RE: Make things Interactive? - Romulator - 01-13-2014 Assuming that your first part is okay, could you explain what your problem is with the interact specifically? Such as; Do you not get the item in your inventory? Is your problem that you're unable to open doors with this item? RE: Make things Interactive? - DnALANGE - 01-13-2014 Quote:dosn't work with my keycard open door scripts?void ???(string &in asItem, string &in asEntity) You might look for this Silent* RE: Make things Interactive? - SilentHideButFine - 01-13-2014 The total problem of the script is , that he get the message he get the card BUT the keycard don't work to the panels :O RE: Make things Interactive? - daortir - 01-13-2014 Did you script the use item callback ? It's not going to work on its own : ). RE: Make things Interactive? [FIXED] - DnALANGE - 01-13-2014 I've fixed the problem, and some others too Helped this guys trough Skype. Thanks daortir and Romulator. |