1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Player RunningSpeed on Certain Entities

Discussion in 'Discussion' started by Sniping Hazard, May 23, 2013.

  1. Hello again C16, I'm wondering if there is a good string to use for like a clothing-based entity to have a certain runspeed on it.

    Is it possible to have this kind of string?
     
  2. diablo1675

    diablo1675 Guest

    Should be possible. Nothing is ever impossible on GMod.

    How? Don't ask me, I'm not a developer. I'm the Director type. For good help, you'll want RJ or Duck.
     
  3. Code:
    -- A function to set a player's run speed.  
    function playerMeta:SetRunSpeed(speed, bClockwork)
    	-- 50 is the amount that it increases by.
    	if (!bClockwork) then self.cwRunSpeed = speed + 50; end;
    	self:ClockworkSetRunSpeed(speed);
    end;
    

    That should work.

    I can do things, too. There's just a big chance they'll break, that's what I'm famous for.
     

Previous Readers (Total: 0)