Basic Attack (1)
This behavior is used to deal damage to a target.
Parameters
Name |
Description |
---|---|
dir_angle_xz |
The direction to modify the attackers angle by. |
dir_angle_y |
The direction to modify the attackers angle by. |
dir_force |
The amount of force to apply towards angle specified in dir_angle_xz or dir_angle_y. |
dont_apply_immune |
Whether or not to apply immunity to the caster of the behavior. |
max damage |
The maximum amount of damage to be dealt. |
min damage |
The minimum amount of damage to be dealt. |
on_fail_armor |
The behavior to use on failure due to the target having armor. |
on_fail_blocked |
The behavior to use on failure due to the attack being blocked. |
on_fail_immune |
The behavior to use on failure due to the target being immune. |
on_success |
The behavior to use on success of the attack. |
radius |
The radius of the attack. |
use_caster_velocity |
Whether or not to use the casters velocity. |
velocity_multiplier |
Value to multiply velocity by when attacking(?). |
It is unknown what the following variables are used for: - dont_apply_immune - dir_angle_xz - dir_angle_y - dir_force - radius - use_caster_velocity - velocity_multiplier
BitStream Serialization
Align to the byte boundary
allocatedSize
)startOffset
)Note
allocatedSize
would be a 1. If the target was immune it would be a 2. If the success state branches are reached, then this value also represents theon_fail_blocked
startOffset + allocatedSize
and returnon_fail_immune
startOffset + allocatedSize
and returnon_success
on_fail_armor
startOffset + allocatedSize
and returnon_fail_immune
startOffset + allocatedSize
and returnNote
on_fail_armor
behavior was present.