Changing a level door - 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: Changing a level door (/thread-20680.html) |
Changing a level door - tonitoni1998 - 03-09-2013 i want to change a level door to an object, so i can interact with it. i changed the variables in the model editor to object and static. that worked for another entity, but now it doesnt work. i actually just want the door to call a func instead of changing the level. RE: Changing a level door - WALP - 03-10-2013 interact with it how? clicking on it? RE: Changing a level door - ExpectedIdentifier - 03-10-2013 The level doors can already call a function, it has playerinteractcallback however I don't think it'll work as it might crash when you try to interact with it as it will try to go to another level. Another option is to put a script area in front of the door and then the player will interact with that but it will look like it's the door RE: Changing a level door - PutraenusAlivius - 03-10-2013 So when you interact with it (click it.)some thing happened? Or do you want the level door to be a crashed door that you can interact with just like chairs? RE: Changing a level door - NaxEla - 03-10-2013 Do what sonataarctica said and put a script area around the door. Then click on the script area, go to the Area tab, and write your callback where it says "PlayerInteractCallback". Then add that function to your script. For example, if I wrote "DoStuff" for the callback, I would add this to my script: PHP Code: void DoStuff(string &in asEntity) RE: Changing a level door - tonitoni1998 - 03-10-2013 I have the problem... It was all fine, i just couldnt interact with it because i did not set an interaction callback yet. I tried to interact with it with out having it to call something. I expected at least to see the icon, but thats only possible when it has an interaction callback RE: Changing a level door - Unearthlybrutal - 03-10-2013 Make the level door locked (without sound) and do the "PlayerInteractCallback"? RE: Changing a level door - No Author - 03-10-2013 You check the interaction box on the second tab of the script_area. Then you put the script NaxEla was talking about. |