Dungeon Souls Editor Quick Onboarding Modules Items Sprites Functions Steam Workshop Contact

createPlayerProjectilePercentage

Creates a projectile that belongs to the player, at the specified position. The projectile's damage will depend on the player's damage, in a percentage fashion.

Arguments and Return

Argument Name Argument Type Description
x realThe x coordinate of the location to spawn the projectile at.
y realThe y coordinate of the location to spawn the projectile at.
physical damage percentage realThe percentage of physical damage of the projectile. Corresponds to the amount of physical damage the projectile inherits from the player. A value of 0.5 means the projectile will deal physical damage equal to 50% of the player's physical damage.
magical damage percentage realThe percentage of magical damage of the projectile. Corresponds to the amount of magical damage the projectile inherits from the player. A value of 0.5 means the projectile will deal magical damage equal to 50% of the player's magical damage.
speed realThe speed of the projectile.
direction realThe direction of the projectile.
sprite valueThe sprite of the projectile. If a value of -1 is passed, the projectile will be invisible.

Return

No return type available