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
Falling Player Script Help!
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#1
Exclamation  Falling Player Script Help!

Hi all!
So I have finally gotten the cave-in to work...
Now another thing comes to mind:
I want to also make it where the player falls to the ground while the collapse happens. Anyone know the code of the falling player thing?
One more thing, I also want to add dust particle effect thing. Thanks!
-TheMadmaxster
(This post was last modified: 10-13-2012, 03:22 AM by TheMadmaxster.)
10-13-2012, 03:10 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Falling Player Script Help!

If questions are relative to a thread you already made, could you update that thread next time?
10-13-2012, 03:21 AM
Find
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#3
RE: Falling Player Script Help!

(10-13-2012, 03:21 AM)Statyk Wrote: Haha! Ya, sorry. I'm really tired; not thinking straight.
10-13-2012, 03:24 AM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#4
RE: Falling Player Script Help!

void faint(string &asTimer)
{
PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false);
SetPlayerCrouching(true);
FadePlayerRollTo(50, 150, 150);
}


Simple simulation off the player falling.

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
(This post was last modified: 10-13-2012, 09:45 AM by Wapez.)
10-13-2012, 09:43 AM
Find
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#5
RE: Falling Player Script Help!

Is there an onstart line?
10-13-2012, 07:05 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Falling Player Script Help!

He provided a timer-script.
What you need to do is place the following line in where the cavein script is.

AddTimer("faint", 0, "faint");

Trying is the first step to success.
10-13-2012, 10:23 PM
Find




Users browsing this thread: 1 Guest(s)