ReflectOffActor

From ZDoom Wiki
Jump to navigation Jump to search

bool ReflectOffActor (Actor blocking)

Usage

Reflects the calling actor off the blocking actor. This is the same logic used for reflective projectiles, including accounting for flags like AIMREFLECT, SHIELDREFLECT etc, this is normally called from a projectile, as it also sets the blocking actor as the callers' target in the end, and changes the tracer pointer if the caller is a SEEKERMISSILE.

Parameters

  • blocking: The actor that the caller is reflecting off of.

Return value

Returns true if the caller successfully reflected off the blocking actor.False if the caller is not REFLECTIVE at all.

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.