MonsterBulletAttack: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{codepointer| description=Generic monster bullet attack. |usage='''MonsterBulletAttack(''horizontal_spread'', ''vertical_spread'', ''number_of_bullets'', ''base_damage'', ''random_multiplier'') |parameters= *''horizontal_spread'': in degrees (accepts decimal point). Default: 0 (perfectly precise horizontally) *''vertical_spread'': in degrees (accepts decimal point). Default: 0 (perfectly precise vertically) *''number_of_bullets'': how many bullet tracers to fire. Defaul...") |
(No difference)
|
Latest revision as of 13:39, 9 June 2024
Description
Generic monster bullet attack.
Usage
MonsterBulletAttack(horizontal_spread, vertical_spread, number_of_bullets, base_damage, random_multiplier)
Parameters
- horizontal_spread: in degrees (accepts decimal point). Default: 0 (perfectly precise horizontally)
- vertical_spread: in degrees (accepts decimal point). Default: 0 (perfectly precise vertically)
- number_of_bullets: how many bullet tracers to fire. Default: 1
- base_damage: base damage of attack, which will be multiplied by 1 up to random_multiplier inclusive. Default: 3
- random_multiplier: maximum multiplier of base_damage. Default: 5. Must not be 0.
Examples
No examples given.
Notes
The damage formula is base_damage * random(1, random_multiplier).