BounceWall

From ZDoom Wiki
Jump to navigation Jump to search

bool BounceWall (Line l = null) (New from 4.11.0)

Usage

Makes the actor calling the function bounce off the l linedef. This uses all the normal behavior for actors bouncing off linedefs, such as ignoring this function if the caller doesn't have BOUNCEONWALLS. The actor does not need to actually be in contact with the line for this function to work.

Parameters

  • l: The linedef that the caller should bounce off of. If no line is defined, the callers' BlockingLine is used instead.

Return value

Returns true if the caller successfully bounced.

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.