![]() |
problem with scare script - 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: problem with scare script (/thread-19839.html) |
RE: problem with scare script - zergling50 - 04-10-2013 (04-08-2013, 09:00 AM)junkfood2121 Wrote:(04-08-2013, 02:20 AM)JustAnotherPlayer Wrote: You're not adding enough force! You need the force to be above 2000 to see the effects. first off, I dont know what you meant by I need another paramater. Also, I don't believe 30000 is necessary because I can fling a door open with impulse using 20. It's just this door wont work for some reason. (04-08-2013, 02:05 AM)noovra Wrote:(04-07-2013, 09:42 PM)zergling50 Wrote: So I just went through again and managed to finally discover why it was still crashing, it was a problem with a completely different method, the fix you guys showed me with the entity sound thing worked. Only problem is the door is not flying open. Every part works except that. I set up two script areas next to the door so that I could in the game test what different impulses would do to the door and see if I could get it to work, but it wont work. You can see the door get shoved and hear an impact but its like its hooked up to a really strong rubber band because it only budges an extremely little bit and then shuts right back closed. I have tried extremely high values (in the 600's) and small values (in the 10's) but they all have the same effect. The door simply wont move. Does anyone have any idea whats going on? I have another bit of code that uses it the exact same way CODE: AddPropImpulse("mansion_3", 0, 0, -50, "world"); This works just fine. For some reason it wont work on this particular door though. Ive tried all three coordinates in both the negatives and positives. None worked. RE: problem with scare script - NaxEla - 04-11-2013 Make sure that the door isn't clipping inside the door frame at all. Also, which door and doorframe are you using? RE: problem with scare script - zergling50 - 06-11-2013 (04-11-2013, 12:36 AM)NaxEla Wrote: Make sure that the door isn't clipping inside the door frame at all. Also, which door and doorframe are you using? Sorry, I have had to put this project on the backburner for a while and am getting back into it. I am using the mansion door and wall door frame set By the way, I took the door out of the door frame and tried seeing if it would move out of it. It does the same exact thing even out of the frame. I don't know if its a glitch with that door or what as other doors with similar actions in the map work fine. it looks as if its pushing against something when the force is applies and is shoved back in place. UPDATE: I have even tried deleting this door and adding a new one, removing the door frame, and reducing and increasing the force. None of this is working. Should I try something besides propImpulse? EDIT: I realized that in the other cases where the door is slammed shut or open the player had already interacted with the door and thus it was slightly ajar. In this case im trying to fling open a closed door (not locked, just closed) and for some reason this causes complications. If I walk up to the door and move it slightly ajar and then activate the script it works fine, but once the door is closed and I activate it again it wont open. (I made two testing trigger areas. One swings the door open and one swings it closed. This way I can watch its effects multiple times in one playthrough.) RE: problem with scare script - GrAVit - 06-12-2013 I suppose you could go to the door's settings in the level editor and set the OpenAmount to a very small value. That way the door would be technically open but visibly hardly noticeable. Or you could make it visibly ajar. Whatever you want. Also, if you choose to do so, be sure to use this: SetSwingDoorDisableAutoClose("mansion_6", true); That way it wont automatically close itself when it's only open by a small amount. You need to add it outside the function though. RE: problem with scare script - Daemian - 06-12-2013 This happened to me once. I had to do the following: PHP Code: void LazyDoorOpen () { In my experience, i remember i put 5 floating doors. The only door that opened is the one with that code, in that order. First disable, then swingclosed, then the two impulses with a little delay between. RE: problem with scare script - PutraenusAlivius - 06-12-2013 (06-12-2013, 12:19 PM)Amn Wrote: This happened to me once. You know that guy would just copy-paste that right? And then he says it got an error. RE: problem with scare script - zergling50 - 06-13-2013 (06-12-2013, 02:48 PM)JustAnotherPlayer Wrote:(06-12-2013, 12:19 PM)Amn Wrote: This happened to me once. Actually, I didn't lol. I know the basics of coding. But I decided to go with the slightly ajar door suggestion and it worked great. (06-12-2013, 08:16 AM)GrAVit Wrote: I suppose you could go to the door's settings in the level editor and set the OpenAmount to a very small value. That way the door would be technically open but visibly hardly noticeable. I tried this out and it worked great. thanks ![]() |