SetGravity

void SetGravity (fixed amount);

Usage

This function sets the global gravity of an entire level. The values used here are the same as those used by the sv_gravity cvar.

Parameters

  • amount: the gravity value to apply, where 800.0 is normal, 400.0 is half, and 1600.0 is double, etc.

Examples

This changes the gravity to 400.0 upon opening of the level:

script 2 OPEN
{
	SetGravity(400.0);
}

See also

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.