Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- event Tick( float DeltaTime )
- {
- local int i;
- if ( OrbHolder != None )
- {
- bCollideWorld = false;
- bCollideWhenPlacing = false;
- SetPhysics(PHYS_None);
- if ( sgBuilding(OrbHolder) == None )
- Elevation = 56; // Set the orb a little above the Players head.
- else
- Elevation = 0; // So the orb stays centered
- FollowPlayer();
- if ( sgBuilding(OrbHolder) == None )
- {
- if ( OrbHolder.bIsPlayer != true || OrbHolder.Health <= 0 || OrbHolder.PlayerReplicationInfo == None ||
- OrbHolder.PlayerReplicationInfo.bIsSpectator == true )
- DropOrb();
- }
- }
- // Make the orb's meshes follow the orb
- for ( i = 0; i != 3; i++ )
- AttachedMeshes[i].SetLocation(Location);
- }
Add Comment
Please, Sign In to add comment