A_SetSize

From ZDoom Wiki
Jump to navigation Jump to search

bool A_SetSize (double newradius = -1, double newheight = -1, bool testpos = false)

Usage

Changes the blocking dimensions (radius and height) of an actor. It can also check to see if the actor fits after the change, and reverts should the check fail.

Parameters

  • newradius: The actor's new radius. Any negative value means no change. Default is -1.
  • newheight: The actor's new height. Any negative value means no change. Default is -1.
  • testpos: If true, the actor performs a check to see if it will fit in the current position with the new size.

Return Value

Returns false only if testpos is used and the actor is determined to be stuck upon changing size. Returns true otherwise.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.