A_CustomComboAttack
From ZDoom Wiki
A_CustomComboAttack (string missiletype, float spawnheight, int damage, string meleesound, string damagetype, bool bleed)
The actor performs either a melee or missile attack depending on the distance to the target. A melee attack will be used if the target is within the actor's specified melee range. Otherwise, a projectile is generated instead.
- missiletype: The class name of the missile to spawn.
- spawnheight: The height of the spawned missile.
- damage: The melee damage dealt to the target.
- meleesound: The sound played when the melee attack is used.
- damagetype: The type of damage dealt if a melee attack is used. Defaults to "melee".
- bleed: Controls whether the target bleeds on a successful hit by the melee attack. Defaults to true.
Examples
|
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |