跳转到内容

MeleeAttackData

此内容尚不支持你的语言。

Defined in: gameplay/MeleeAttack.ts:40

The fields of the MeleeAttack component.

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: number

Defined in: gameplay/MeleeAttack.ts:55

Engine-written: the live swing, or 0 when none is running.


damage: number

Defined in: gameplay/MeleeAttack.ts:44

What a landed blow takes off.


enabled: boolean

Defined in: gameplay/MeleeAttack.ts:53


hitCount: number

Defined in: gameplay/MeleeAttack.ts:57

Engine-written: how many targets the live swing has landed on.


layers: number

Defined in: gameplay/MeleeAttack.ts:46

Physics layers the swing can reach; 0 is every layer.


radius: number

Defined in: gameplay/MeleeAttack.ts:42

Radius of the sphere a hit tests, in world units.