Guest User

Untitled

a guest
Jun 19th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1.  
  2. event Tick( float DeltaTime )
  3. {
  4. local int i;
  5.  
  6. if ( OrbHolder != None )
  7. {
  8. bCollideWorld = false;
  9. bCollideWhenPlacing = false;
  10. SetPhysics(PHYS_None);
  11.  
  12. if ( sgBuilding(OrbHolder) == None )
  13. Elevation = 56; // Set the orb a little above the Players head.
  14. else
  15. Elevation = 0; // So the orb stays centered
  16.  
  17. FollowPlayer();
  18.  
  19. if ( sgBuilding(OrbHolder) == None )
  20. {
  21. if ( OrbHolder.bIsPlayer != true || OrbHolder.Health <= 0 || OrbHolder.PlayerReplicationInfo == None ||
  22. OrbHolder.PlayerReplicationInfo.bIsSpectator == true )
  23. DropOrb();
  24. }
  25. }
  26.  
  27. // Make the orb's meshes follow the orb
  28. for ( i = 0; i != 3; i++ )
  29. AttachedMeshes[i].SetLocation(Location);
  30.  
  31. }
Add Comment
Please, Sign In to add comment