Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ladder falling script
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#1
Ladder falling script

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.

Rep if like me or im helpful or you love my stories!
Stephanos house
11-11-2010, 10:57 PM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#2
RE: Ladder falling script

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


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
11-11-2010, 11:29 PM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#3
RE: Ladder falling script

(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?)

Rep if like me or im helpful or you love my stories!
Stephanos house
(This post was last modified: 11-11-2010, 11:39 PM by Gamemakingdude.)
11-11-2010, 11:35 PM
Find
Armored Cow Offline
Member

Posts: 72
Threads: 3
Joined: Sep 2010
Reputation: 0
#4
RE: Ladder falling script

Make the function disable the ladder area as well.
11-12-2010, 12:45 AM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#5
RE: Ladder falling script

(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.

Rep if like me or im helpful or you love my stories!
Stephanos house
11-12-2010, 01:26 AM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#6
RE: Ladder falling script

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

Rep if like me or im helpful or you love my stories!
Stephanos house
11-12-2010, 04:13 AM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#7
RE: Ladder falling script

No body know any way?

Rep if like me or im helpful or you love my stories!
Stephanos house
11-12-2010, 11:03 AM
Find
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#8
RE: Ladder falling script

(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".
(This post was last modified: 11-12-2010, 03:26 PM by Hooumeri.)
11-12-2010, 03:24 PM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#9
RE: Ladder falling script

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

Rep if like me or im helpful or you love my stories!
Stephanos house
11-13-2010, 02:35 AM
Find
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#10
RE: Ladder falling script

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
11-13-2010, 09:12 AM
Find




Users browsing this thread: 1 Guest(s)