GSC reference › Built-in
Bobbing()
Built-in (engine)
Server
Causes a script entity to bob around its origin, along a given vector dir
Signature
Bobbing(<direction vector>, <amplitude>, <period>, [phase])
Parameters
| Name | Required? | Details |
|---|---|---|
| direction vector | Required | The direction of the bobbing |
| amplitude | Required | The amount of the bobbing in units |
| period | Required | The period of the bobbing in seconds |
| phase | Optional | The phase offset of the bobbing |
Example (from Treyarch's docs)
self Bobbing( directionVir, 0.3, 0.4, 0.0f )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/mp/_pickup_items.gsc, line 124
self bobbing((0, 0, 1), 4, 1);
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).