Est SetGravity

From EventScripts Community Encyclopedia
Syntax: est_SetGravity <identifier> <gravity ratio>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Sets the players gravity ratio

Parameters

  • identifier - See Est_PlayerSelection for player selection help
  • gravity ratio - The ratio you want to set the gravity to

Example


event weapon_fire
{
	// Changes the gravity to half the default for the current player
	es est_SetGravity event_var(userid) 0.5
	// Change the gravity back to normal after 5 seconds
	es_delayed 5 est_SetGravity event_var(userid) 1.0
}

Notes

  • 2.0 doubles the default gravity level
  • 1.0 changes back to default gravity
  • 0.5 is half of the default gravity
  • negative values will pull you towards the sky

See Also

blog comments powered by Disqus