PlatformCreateProjectile
Callable
Parameters
Name: ProjectileName
The name of the projectile (Arrow, Bullet, etc.)
Type: ProjectileType
The type of the projectile (Wood, Iron, etc.)
FaceLeft: boolean
IF the projectile is facing the left direction
X: number
The X position
Y: number
The Y position
Force: number
The speed of the projectile
Gravity: number = 0.25
The Y axis gravity pulling that projectile down (default to 0.25)
Damage: number
The damage done by the projectile
optionalHitAudio: string[]
The damage done by the projectile
Returns void
- Nothing
Creates a projectile that will disappear when it hits the floor or a wall