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
Script Help Player Run Into Door, Explosion
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: Player Run Into Door, Explosion

(03-30-2013, 07:42 AM)NaxEla Wrote: There's a function called GetPlayerSpeed() that will return the players' speed.
PHP Code: (Select All)
void door(string &in asParentstring &in asChildint alState
{
    if(
GetPlayerSpeed() > 10.0f) {   // you'll probably need to change 10 to a different number
        
CreateParticleSystemAtEntity("""ps_impact_dust_low.ps""script3"false);
        
SetPropHealth("prison_1"0.0f);
        
SetSwingDoorLocked("prison_1"falsetrue);
    }


I'm not sure if a speed over 10 is running, so you'll need to do some testing to find the right number.

There is? Where is it? I can't see them in the Script Functions page.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-30-2013, 11:30 AM
Find


Messages In This Thread
Player Run Into Door, Explosion - by TheIcyPickle - 03-30-2013, 05:39 AM
RE: Player Run Into Door, Explosion - by NaxEla - 03-30-2013, 07:42 AM
RE: Player Run Into Door, Explosion - by PutraenusAlivius - 03-30-2013, 11:30 AM
RE: Player Run Into Door, Explosion - by NaxEla - 03-30-2013, 09:19 AM
RE: Player Run Into Door, Explosion - by WALP - 03-30-2013, 01:54 PM
RE: Player Run Into Door, Explosion - by Tiger - 03-30-2013, 03:38 PM



Users browsing this thread: 1 Guest(s)