SetAirControl

From ZDoom Wiki
Jump to navigation Jump to search

void SetAirControl (fixed amount);

Usage

Modifies the value of aircontrol which can initially be set in MAPINFO. Aircontrol determines how well the player can move while falling or jumping through the air.

Air control is multiplied (using FixedMul) to the default friction when the player is not on the ground in an area that has gravity, and is not underwater. This gives the player very limited mobility while in the air. The friction is calculated based on the type of floor the player is on, such as icy or muddy.

Parameters

  • amount: How much control the player should have while in the air. Amount is a fixed-point value. The default is 0.00390625.

Examples

Gives players near full air control.

Script 1 OPEN
{
    SetAirControl(1.0);
}

See also