|
Post by Admin on Sept 8, 2016 20:32:08 GMT
add the following code at the end of the script :
#region Added by DK public void SetController (float _walkSpeed, float _runningSpeed, float _sprintSpeed, float _crouchSpeed, float _strafeSpeed, float _crouchStrafeSpeed, bool _rotateByWorld, bool _turnOnSpot, bool _quickStopAnim, float _freeRotationSpeed, float _strafeRotationSpeed, float _randomIdleTime, float _headWeight ){ walkSpeed = _walkSpeed; runningSpeed = _runningSpeed; sprintSpeed = _sprintSpeed; crouchSpeed = _crouchSpeed; strafeSpeed = _strafeSpeed; crouchStrafeSpeed = _crouchStrafeSpeed; rotateByWorld = _rotateByWorld; turnOnSpot = _turnOnSpot; quickStopAnim = _quickStopAnim; freeRotationSpeed = _freeRotationSpeed; strafeRotationSpeed = _strafeRotationSpeed; randomIdleTime = _randomIdleTime; headWeight = _headWeight; }
public void SetLandHigh ( bool LandHigh ){ landHigh = LandHigh; }
public void SetJumpOver ( bool _jumpOver ){ _rigidbody.useGravity = !_jumpOver; _capsuleCollider.isTrigger = _jumpOver; jumpOver = _jumpOver; } #endregion Added by DK
|
|