Frictional Games Forum (read-only)

Full Version: Ladder falling script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
Ladders need ladder areas so the player can use them, maybe SetEntityActive works for those?
(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?)
Make the function disable the ladder area as well.
(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.
It doesn't work still.... There must be something that can make me fall off the ladder.
No body know any way?
(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".
not working, he's still holding on the ladder.
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
Pages: 1 2