MeleeAttackData
此内容尚不支持你的语言。
Defined in: gameplay/MeleeAttack.ts:40
The fields of the MeleeAttack component.
Properties
Section titled “Properties”anchor
Section titled “anchor”anchor:
number
Defined in: gameplay/MeleeAttack.ts:52
The entity whose WORLD placement the query is centred on — a socket under an animated joint, so where the swing reaches is what the animation did. 0 falls back to the attacker itself, which is a body slam, not a sword.
attackId
Section titled “attackId”attackId:
number
Defined in: gameplay/MeleeAttack.ts:55
Engine-written: the live swing, or 0 when none is running.
damage
Section titled “damage”damage:
number
Defined in: gameplay/MeleeAttack.ts:44
What a landed blow takes off.
enabled
Section titled “enabled”enabled:
boolean
Defined in: gameplay/MeleeAttack.ts:53
hitCount
Section titled “hitCount”hitCount:
number
Defined in: gameplay/MeleeAttack.ts:57
Engine-written: how many targets the live swing has landed on.
layers
Section titled “layers”layers:
number
Defined in: gameplay/MeleeAttack.ts:46
Physics layers the swing can reach; 0 is every layer.
radius
Section titled “radius”radius:
number
Defined in: gameplay/MeleeAttack.ts:42
Radius of the sphere a hit tests, in world units.