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

NameRequired?Details
direction vectorRequired The direction of the bobbing
amplitudeRequired The amount of the bobbing in units
periodRequired The period of the bobbing in seconds
phaseOptional 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:

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).