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 Sprint Questions
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#4
RE: Sprint Questions

(04-08-2012, 06:50 PM)JetlinerX Wrote: Hey all-

First off, is it possible to "disable sprint" and secondly, if the player is crouched, is it possible to kill them if they stand or sprint?
.
Ya'll prolly not need this, but maybe you will if you're going to put up a script if the player starts to sprint.
Then you could put up a timer that checks the player's speed. If the player's speed gets bigger than a certain amount, then something will happen.

void speedtimer(string &in asTimer)
{
AddTimer("speedtimer", 0.2f, "speedtimer");
if (GetPlayerSpeed() >=MAX_ALLOWED_SPEED )
{
SOMETHING HAPPENS
}
}






04-09-2012, 12:19 AM
Website Find


Messages In This Thread
Sprint Questions - by JetlinerX - 04-08-2012, 06:50 PM
RE: Sprint Questions - by Statyk - 04-08-2012, 07:24 PM
RE: Sprint Questions - by JetlinerX - 04-08-2012, 08:21 PM
RE: Sprint Questions - by Mackiiboy - 04-09-2012, 12:19 AM
RE: Sprint Questions - by Statyk - 04-09-2012, 02:38 AM



Users browsing this thread: 1 Guest(s)