A_SetSize

From ZDoom Wiki
Jump to: navigation, search

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

Changes the blocking dimensions (radius and height) of an actor. Also can 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.
  • 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 contibutions are greatly appreciated.