UGCProjects/Document/和平精英.md
2025-01-04 23:00:19 +08:00

334 B
Raw Blame History

武器

开火回调

  • UGCPlayerPawn::UGC_WeaponShootBulletEvent(ShootWeapon, Bullet)
    • 客户端执行
    • 可以通过 Bullet:GetShootID() 获取唯一 ID该值会在死亡之后重置
    • ShootWeapon:GetCurShootID() 获取的值会比实际子弹 ID 小 1因此需要 + 1 才可以得到当前的子弹 ShootID