“點傷害“通常應用與射擊傷害:
#include“Kismet/GameplayStatice.h”
UGameplayStatics::ApplyPointDamage(HitActor , 10.0f , ShotDirection , Hit , MyOwner->GetInstigatorController() , this , UDemageType);
參數爲(被攻擊的Actor , 傷害值 ,攻擊方向 ,碰撞信息FHitResule類型,發起對象控制器,this,傷害類型“可以讓變量在Edit指定”)