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.

Argument Name | Argument Type | Description |
---|---|---|

x | real | The x coordinate of the location to spawn the projectile at. |

y | real | The y coordinate of the location to spawn the projectile at. |

physical damage percentage | real | The 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 | real | The 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 | real | The speed of the projectile. |

direction | real | The direction of the projectile. |

sprite | value | The sprite of the projectile. If a value of -1 is passed, the projectile will be invisible. |

*No return type available*