GetFriction

From ZDoom Wiki
Jump to navigation Jump to search

Double, Double GetFriction ()

Usage

Returns the move factor and friction of the calling actor.

Return value

The function returns two values, the actors' move factor, and it's own friction. This friction is separate from the sectors' own friction. Meaning that it accounts for the callers' local friction as well. The move factor is the multiplier to apply to the actors' velocity. You can do a single return with the function as well, which will return only the move factor.

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.