Advertisement
Guest User

RokkitTriggerVolume

a guest
Jul 31st, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class RokkitTriggerVolume extends TriggerVolume;
  2.  
  3. simulated function PostBeginPlay() {
  4.     `log("=================== Rokkit Trigger Volume ===================");
  5. }
  6.  
  7. event Touch(Actor Other, PrimitiveComponent OtherComp, Vector HitLocation, Vector HitNormal) {
  8.     `log("=================== Actor: " @ Other @ " Touched the Volume ===================");
  9.  
  10.     if( RokkitPawn(Other) != none ) {
  11.         RokkitPawn(Other).BoostPawn( HitNormal );
  12.         RokkitPawn(Other).bKeepBoosting = true;
  13.     }
  14. }
  15.  
  16. event UnTouch( Actor Other ) {
  17.     if ( RokkitPawn(Other) != none ) {
  18.         `log("=================== Actor: " @ Other @ " UnTouched the Volume ===================");
  19.         RokkitPawn(Other).bKeepBoosting = false;
  20.     }
  21. }
  22.  
  23. DefaultProperties
  24. {
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement