Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

RokkitTriggerVolume

By: a guest on Jul 31st, 2013  |  syntax: UnrealScript  |  size: 0.71 KB  |  views: 77  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }