GSC reference › Built-in
AllowPitchAngle()
Built-in (engine)
Server
AI Called on: actor
Allows AI to pitch on stairs
Signature
<actor> AllowPitchAngle(<on_off>)
Called on an entity: actor AllowPitchAngle(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| on_off | Required | 1 to allow and 0 to disallow |
Example (from Treyarch's docs)
guy AllowPitchAngle ( 1 )
Real uses in BO3's scripts
Called 13 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_dogs.gsc, line 667
self allowpitchangle(1); - scripts/zm/_zm_ai_monkey.gsc, line 610
self allowpitchangle(1); - scripts/zm/_zm_ai_quad.gsc, line 202
self allowpitchangle(1); - scripts/zm/_zm_devgui.gsc, line 2396
zombie allowpitchangle(1); - scripts/zm/_zm_weap_shrink_ray.gsc, line 403
self allowpitchangle(0);
Related built-ins
- SetPitchOrient()Set pitch orientation
- GetNodeOffsetAngles()Returns the angles the actor thinks the node is facing, this can contain additional rotation from the node's actual angles.
- ClearPitchOrient()Clear pitch orientation
- NearClaimNodeAndAngle()Determine whether this actor is near its claim node and nearly matches the angle.
- AnglesToForward()Returns the forward vector corresponding to a set of angles.
- VectortoAngles()Returns a set of angles corresponding to the given vector.
- GetTagAngles()Gets the angles of the tag
- GetPlayerAngles()Get the player view angles
- AnglesToRight()Returns the right vector corresponding to a set of angles.
- AnglesToUp()Returns the up vector corresponding to a set of angles.
- SetPlayerAngles()Set the player's view angles
- AngleClamp180()Returns angle value clamped between [-180,180].
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).