Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RokkitTriggerVolume extends TriggerVolume;
- simulated function PostBeginPlay() {
- `log("=================== Rokkit Trigger Volume ===================");
- }
- event Touch(Actor Other, PrimitiveComponent OtherComp, Vector HitLocation, Vector HitNormal) {
- `log("=================== Actor: " @ Other @ " Touched the Volume ===================");
- if( RokkitPawn(Other) != none ) {
- RokkitPawn(Other).BoostPawn( HitNormal );
- RokkitPawn(Other).bKeepBoosting = true;
- }
- }
- event UnTouch( Actor Other ) {
- if ( RokkitPawn(Other) != none ) {
- `log("=================== Actor: " @ Other @ " UnTouched the Volume ===================");
- RokkitPawn(Other).bKeepBoosting = false;
- }
- }
- DefaultProperties
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement