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 SetPlayerCrouching(true); not working while LShift is pressed
Wili Offline
Junior Member

Posts: 5
Threads: 1
Joined: Dec 2015
Reputation: 0
#5
RE: SetPlayerCrouching(true); not working while LShift is pressed

I tried SetPlayerMoveSpeedMul(0.0); and SetPlayerRunSpeedMul(0); for disabling player controls but if the player keeps pressing Left Shift "SetPlayerCrouching(true);" won't work and the player will clip anyway.

There is any other way for disabling player controls?

SetPlayerActive(false); seems to work, it feels a bit odd because the player stops responding and the player can't look around anymore, but if there is no other way I could make it using that command.

Thanks a lot for the help Neelke!!!
(This post was last modified: 12-23-2015, 02:31 PM by Wili.)
12-23-2015, 02:20 PM
Find


Messages In This Thread
RE: SetPlayerCrouching(true); not working while LShift is pressed - by Wili - 12-23-2015, 02:20 PM



Users browsing this thread: 1 Guest(s)