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 edit summary |
||
| Line 1: | Line 1: | ||
{{codepointer| | {{codepointer| | ||
description=Generic monster bullet attack. | description=Generic monster bullet attack. This is from the MBF21 standard. | ||
|usage='''MonsterBulletAttack(''horizontal_spread'', ''vertical_spread'', ''number_of_bullets'', ''base_damage'', ''random_multiplier'') | |usage='''MonsterBulletAttack(''horizontal_spread'', ''vertical_spread'', ''number_of_bullets'', ''base_damage'', ''random_multiplier'') | ||
|parameters= | |parameters= | ||
Latest revision as of 11:12, 16 February 2026
Description
Generic monster bullet attack. This is from the MBF21 standard.
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).