Advertisement
orfeasel

Hit Events header file

Dec 27th, 2015
9,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. /*Static Mesh Component*/
  2. UPROPERTY(VisibleAnywhere)
  3. UStaticMeshComponent* SM;
  4.  
  5. /*OnHit functions is called when the FallingActor hits something - PRE 4.12 version */
  6. UFUNCTION()
  7. void OnHit(AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
  8.  
  9. /*OnHit function is called when the FallingActor hits something - 4.12+ version */
  10. UFUNCTION()
  11. void OnHit(UPrimitiveComponent* HitComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
  12.  
  13. /*ReceiveHit functions is called when the FallingActor gets hit by something */
  14. UFUNCTION()
  15. void ReceiveHit(UPrimitiveComponent* MyComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement