SetActorPitch

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.

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.