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
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: Player Run Into Door, Explosion

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.

In Ruins [WIP]
03-30-2013, 07:42 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 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)