This commit is contained in:
syui 2025-02-09 02:18:02 +09:00
parent 0b25fd9c7d
commit a311554c85
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -56,7 +56,7 @@ projectにはsampleのABPがあるはずですからAnimGraphに`idle`, `jump`,
1. `/Content/SpaceStation/Blueprints/Weapons`で各武器のタイプを選べます。ここでは`BP_TurretGatling`を開きます。
2. `/Content/SpaceStation/Blueprints/Weapons/BP_TurretGatling(Self)`の詳細から`Weapon -> Shooting Delay:1`にして`Turret -> Turret Aiming Speed:150`にします。これは発射速度とターゲットに合わせる速度の設定です。
3. `/Content/SpaceStation/Blueprints/Weapons/Parent/DT_WeaponTypes`を開きます。ここで弾丸の音(sound)やエフェクト(effect)を設定します。
4. 最後に`/Content/Blueprints/CBP_SandboxCharacter(Self)`の詳細で`actor(アクタ) -> Tags[0] -> Allow Shooting`を追加します。これでPlayerがターゲットにロックされるようになります。なお、`Tags[1] -> ShootingTarget`を追加するとPlayerから銃撃できます。こちらは使いません
4. 最後に`/Content/Blueprints/CBP_SandboxCharacter(Self)`の詳細で`actor(アクタ) -> Tags[0] -> Allow Shooting`, `Tags[1] -> ShootingTarget`を追加します。これでPlayerがターゲットにロックされるようになります
5. あとは`/Content/SpaceStation/Blueprints/Weapons/BP_TurretGatling`をmapに置いてください。
### ダメージ処理