Frictional Games Forum (read-only)
Ladder falling 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Ladder falling script (/thread-5411.html)

Pages: 1 2


Ladder falling script - Gamemakingdude - 11-11-2010

I was wondering if there's a script which when you collide with an area, you'll fall off the ladder and you fade out or rather like slime covering your body.


RE: Ladder falling script - Frontcannon - 11-11-2010

Ladders need ladder areas so the player can use them, maybe SetEntityActive works for those?


RE: Ladder falling script - Gamemakingdude - 11-11-2010

(11-11-2010, 11:29 PM)Frontcannon Wrote: Ladders need ladder areas so the player can use them, maybe SetEntityActive works for those?

I'll give this a go.
It partly works, the ladder disappears but i won't fall i keep climbing. (also how could i do the slime and fade thing?)


RE: Ladder falling script - Armored Cow - 11-12-2010

Make the function disable the ladder area as well.


RE: Ladder falling script - Gamemakingdude - 11-12-2010

(11-12-2010, 12:45 AM)Armored Cow Wrote: Make the function disable the ladder area as well.

I meant it disables the ladder area. I'll try disabling the ladder.


RE: Ladder falling script - Gamemakingdude - 11-12-2010

It doesn't work still.... There must be something that can make me fall off the ladder.


RE: Ladder falling script - Gamemakingdude - 11-12-2010

No body know any way?


RE: Ladder falling script - Hooumeri - 11-12-2010

(11-12-2010, 11:03 AM)Gamemakingdude Wrote: No body know any way?

The area for ladders is not required. Atleast for some of them. What you could do is give the player some bodyforce, away from the ladder. Then add an area to the ground, when which player hits it, the player faints.

void AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords);

PS. The values you put in, need to be very high. In fact, if I recall correctly something like 1000 wont be enough, test it with different values.

EDIT: as for the fainting, I would use wakeUp(); command somehow.. it's a problem, if you only want the player to faint; not to "die".


RE: Ladder falling script - Gamemakingdude - 11-13-2010

not working, he's still holding on the ladder.


RE: Ladder falling script - Chilton - 11-13-2010

Have you tried disabling the ladder, and enabling a new ladder with Static Physics to take its place?
This is a tough one actually, as theres no logical solution, only alot of conjecture