Description
Creates a sustained gravitational singularity at a world position that continuously pulls or repels players toward or away from its center over a set duration. Unlike instant impulse actions, this field persists and supports reevaluation, allowing it to track a moving position in real time. Optionally affects projectiles in flight. Only players matching the specified team filter are affected.
Snippet
Apply Gravity Field To Players(All Teams, Position Of(Event Player), 8, 40, 3, True, Destination and Radius);
Properties
Returns: Void
Parameters: Team, Center, Radius, Pull Strength, Duration, Affect Projectiles, Reevaluation
Team
Type: Team, Default: All Teams
The team or teams whose players will be affected by the gravity field.Center
Type: Vector, Default: Vector(0, 0, 0)
The world position at which the gravitational singularity is created. Supports reevaluation.Radius
Type: Number, Default: 8
The radius in meters within which players are affected.Pull Strength
Type: Number, Default: 40
The force applied toward the center per second, in physics units. Negative values repel players away from the center instead.Duration
Type: Number, Default: 3
How long the gravity field persists, in seconds. Use 0 for an indefinite field that must be stopped manually.Affect Projectiles
Type: Boolean, Default: False
If True, projectiles passing through the field radius are also deflected toward the center.Reevaluation
Type: Gravity Field Reevaluation, Default: None
Specifies which parameters are continuously reevaluated. Options are None, Destination and Radius, or Destination, Radius, and Pull Strength.