Frictional Games Forum (read-only)
Enemy pushing over gate instead of attacking it - 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: Enemy pushing over gate instead of attacking it (/thread-17813.html)



Enemy pushing over gate instead of attacking it - Damascus - 08-16-2012

How can I get an enemy to push open a door rather than break it open? I have a Suitor that I want to walk through the elevator_door gates without attacking it. Unlike most other swing doors, the player can simply push it open by walking against it, but the enemy still attacks it anyway. I thought it would be possible by making SetSwingDoorClosed false for it, but that ends up just setting it wide open to begin with.

[SOLVED] In my chapter I've placed a lock that you must use acid on. It then changes to an acid padlock and breaks immediately (set to 0 health). My problem is that after this, if you leave the map and come back in, the door is closed and the acid padlock is back on again at full health, with no way to break it again. I've tried making it set inactive under OnEnter(), but that doesn't seem to do anything. How can I either keep the lock broken after changing maps, or remove the broken lock altogether?


RE: Broken lock reappearing after level change - lolmaster - 08-16-2012

Is "FullGameSave" checked under "Entity"?


RE: Enemy pushing over gate instead of attacking it - Damascus - 08-16-2012

No, it wasn't.

Wow. I'm dumb. Thanks for the help. Tongue

I've updated my first post cause I just found a new problem, but don't want to make a new thread for it so soon.


RE: Enemy pushing over gate instead of attacking it - Theforgot3n1 - 08-16-2012

(08-16-2012, 09:10 PM)Damascus Wrote: No, it wasn't.

Wow. I'm dumb. Thanks for the help. Tongue

I've updated my first post cause I just found a new problem, but don't want to make a new thread for it so soon.
I did a similar script - instead of the enemy opening the door, he literally runs it down - by positioning an area at the side of the door the enemy will approach it, you can have the door break, open, close, etc, by use of script.
Worked for me!


RE: Enemy pushing over gate instead of attacking it - FlawlessHappiness - 08-18-2012

A scriptarea that collides with the monster in front of the door, and then either:

SetSwingDoorClosed
or
AddPropForce/Impulse