SetActorPitch

From ZDoom Wiki
Jump to: navigation, search

void SetActorPitch (int tid, int pitch)

Usage

Sets the actor's Pitch. Pitch is a fixed point angle. See GetActorPitch for the possible range.

Parameters

  • tid: TID of thing.
  • pitch: Pitch to set.

Examples

This script will reset (or center) the pitch of the activator.

script 1 (void)
{
  SetActorPitch(0, 0);
}

For more advanced uses, see the Cleaned_up_Third_Person_Cam example.