sm.projectile.removeProjectilesWithSource

Removes projectiles created by a given source. The source world must exist.

Kind: Function

Environments: Game

Game

Overload 1

sm.projectile.removeProjectilesWithSource( source, delay )

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
source World The world that is the source of the projectile.
delay (optional) integer The number of ticks before destroying the projectile. (Defaults to 0)

Overload 2

sm.projectile.removeProjectilesWithSource( source, delay )

Open the full Game reference

Availability: Client only

Removes projectiles created by a given source. The source player must exist.

Parameters:

Name Type Description
source Player The player that is the source of the projectile.
delay (optional) integer The number of ticks before destroying the projectile. (Defaults to 0)

Overload 3

sm.projectile.removeProjectilesWithSource( source, delay, world )

Open the full Game reference

Availability: Client only

Removes projectiles created by a given character source. Can remove projectiles from a source that doesn't exist, in this case a world to remove from is required.

Parameters:

Name Type Description
source Character The Character that is the source of the projectile.
delay (optional) integer The number of ticks before destroying the projectile. (Defaults to 0)
world (optional) World The world the projectiles should be removed from. (Defaults to same world as source.)