GSC reference › Built-in

GetControllerPosition()

Built-in (engine) Client

Get current deflection of control, returns values via an array with vector values for "look" and "move" which correspond to those controls. Values are -1 to 1 and represent the given axis on the vector

Signature

GetControllerPosition(<localClientNum>)

Parameters

NameRequired?Details
localClientNumRequired Client number of the controller you want the position of

Example (from Treyarch's docs)

pos = self GetControllerPosition() ...

Real uses in BO3's scripts

Called 1 time 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).