Description
Create a projectile entity that either heals or damages players or player owned entities. The projectile follows the provided target with variable strength. This action will fail if too many entities have been created.
Snippet
Create Homing Projectile(Orb Projectile, Event Player, Null, Null, To World, Damage, Team(Team 1), 1, 1, 0, Bad Explosion, Explosion Sound, 0, 1, 1, 0, Null, 1);
Properties
Returns: Void
Parameters: Projectile Type, Player, Start Position, Direction, Relative, Modify Health Type, Affected Team, Amount, Amount Scalar, Explosion Radius, Explosion Effect, Explosion Sound Effect, Oversize, Speed, Lifetime, Impulse, Homing Target, Homing Strength
Projectile Type
Type: Projectile Effect, Default: Orb Projectile
Type of projectile to be created. New options can be added to this list by enabling the Projectiles Workshop Extension.Player
Type: Player, Default: Event Player
The player who owns this projectile and will receive credit for kills. If null, the projectile will be owned by nobody. The projectile will not affect its owner.Start Position
Type: Position, Default: Null
The start position of the projectile. If null, the player's eye position will be used.Direction
Type: Direction, Default: Null
The direction for the projectile to travel. If null, the player's facing direction will be used.Relative
Type: Relativity, Default: To World
Whether the projectile's start position and direction are relative to the player or to the world.Modify Health Type
Type: Modify Health Type, Default: Damage
Whether the projectile will heal or damage targets it collides with.Affected Team
Type: Team, Default: Team
Which team the projectile will collide with. The projectile will never affect its owner regardless of team.Amount
Type: Float, Default: Number (1)
The amount of damage or healing the projectile will apply to targets it collides with. If explosion radius is set to an amount greater than 0, this is how much damage the explosion will do at its center.Amount Scalar
Type: Float, Default: Number (1)
If explosion radius is set to 0 this is how much to scale the damage amount for critical hits. If the explosion radius is greater than 0 this is how much damage the projectile will do at the edge of the explosion.Explosion Radius
Type: Float, Default: Number
The radius of the explosion created by this projectile. If 0, this projectile doesn't create an explosion.Explosion Effect
Type: Effect, Default: Bad Explosion
The effect to use when the projectile explodes. If explosion radius is 0 this effect will not be created.Explosion Sound Effect
Type: Effect, Default: Explosion Sound
The sound effect to use when the projectile explodes. If explosion radius is 0 this effect will not be created.Oversize
Type: Float, Default: Number
A 0 to 1 range for how oversized the projectile should be, 0 being the default size, 1 being the maximum allowed size. The maximum allowed size is different for each projectile type.Speed
Type: Float, Default: Number (1)
The speed in meters per second that the projectile will travel along its direction.Lifetime
Type: Float, Default: Number (1)
How long in seconds before the projectile expires.Impulse
Type: Float, Default: Number
The impulse to apply to a target when hit by this projectile. If explosion radius greater than 0, this impulse will applied to all targets affected by the explosion.Homing Target
Type: Player, Default: Null
The homing target for the projectile. If null, the projectile will travel in a straight line.Homing Strength
Type: Float, Default: Number (1)
A 0 to 1 value representing how strongly the projectile will follow its target and how easily it will lose its target. At 0, the projectile won't follow its target at all, at 1, it will follow its target aggressively and never lose it.