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 )
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 )
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 )
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: