Announcement

Collapse
No announcement yet.

Possible To.....?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Possible To.....?

    Is it Possible to script gravity changes? Like, 5 seconds, 1500 gravity, 5 seconds -1500? If it is possible, could someone give me the script?

    #2
    What, Not even a please!

    Comment


      #3
      plez?:weird:

      Comment


        #4
        What manners!

        Comment


          #5
          Ok since I was bored ..I've come up with a small solution that changes gravity every 5 seconds. I haven't tried compiling this but it should work ok.

          Code:
          class ChangingGrav extends MutLowGrav;
          
          event PreBeginPlay()
          {
              SetTimer(5.0,true);  //Set the timer for 5 seconds
          }
          
          function Timer()
          {
              GravityZ + 100; //Every 5 seconds increase gravity by 100
              if ( GravityZ > 50 ) //  If gravity gets to the point where your pulled upward (anything higher than 0) reset gravity to default.
              GravityZ == -300;  
          }
          
          defaultproperties
          {
               GravityZ=-300.000000
               GroupName="Gravity"
               FriendlyName="ChagingGravity"
               Description="Changing Low gravity."
          }
          Hope that works, and feel free to change the numbers to your liking, remember, anything higher than 0 pulls you upward so use negative numbers.

          Comment


            #6
            Gravity == -300; won't work.
            Put Gravity = 300; instead :lol:

            Comment

            Working...
            X