GSC reference › Built-in
SetMaxSpeedScale()
Built-in (engine)
Server
Vehicle Called on: vehicle
Sets the max speed scale for this physics vehicle.
Signature
<vehicle> SetMaxSpeedScale(<scale>)
Called on an entity: vehicle SetMaxSpeedScale(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| scale | Required | The max speed scale of the physics vehicle |
Example (from Treyarch's docs)
self SetMaxSpeedScale( 2.6 )
Real uses in BO3's scripts
Called 7 times in the decompiled scripts. A few, zombies first:
- scripts/shared/vehicles/_amws.gsc, line 166
self setmaxspeedscale(880 / self getmaxspeed(1)); - scripts/shared/vehicles/_amws.gsc, line 171
self setmaxspeedscale(0.1); - scripts/shared/vehicles/_amws.gsc, line 282
self setmaxspeedscale(880 / self getmaxspeed(1)); - scripts/shared/vehicles/_amws.gsc, line 298
self setmaxspeedscale(0.1); - scripts/shared/vehicles/_siegebot.gsc, line 990
self setmaxspeedscale(1);
Related built-ins
- GetMaxSpeed()Get the max speed of a vehicle.
- SetMaxAccelerationScale()Sets the max acceleration scale for this physics vehicle.
- SetVehMaxSpeed()Overrides the max speed for this vehicle.
- SetMoveSpeedScale()Sets the speed scale multiplier for the entity
- Target_ScaleMinMaxRadius()Returns the ratio from 0-1 of where the target is in relation to the radius min and radius max
- GetMaxReverseSpeed()Get maximum reverse speed of a vehicle.
- GetMoveSpeedScale()Gets the speed scale multiplier for the entity
- SetSpeed()Sets the speed and acceleration for this vehicle.
- GetSpeed()Gets the current speed in inches per second.
- SetSpeedImmediate()Sets the speed and acceleration for this vehicle instantaneously.
- ResumeSpeed()Sets the vehicle to resume its path speed.
- GetSpeedMPH()Gets the current speed in miles per hour.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).