GSC reference › Built-in

PushPlayer()

Built-in (engine) Server AI Called on: actor

Set whether this character can push the player. Don't call this unless you know what you are doing.

Signature

<actor> PushPlayer(<can push player>)

Called on an entity: actor PushPlayer(...)

Parameters

NameRequired?Details
can push playerRequired (bool) True if this character can push the player.

Example (from Treyarch's docs)

level.elder PushPlayer( true )

Real uses in BO3's scripts

Called 10 times in the decompiled scripts. A few, zombies first:

Related built-ins

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