Announcement

Collapse
No announcement yet.

3 things I need to know(Vehicles and Compiling)

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

    #16
    The problem has been pulling it off with a minimal amount of code(I don't know much past DefProperties)

    Comment


      #17
      The followoing will make a factory that always stays the team number it's set to in ForceTeam - > iForcedTeamNumber in it's Unreal Ed Properties

      Code:
      class MyVehicleFactory extends ONSVehicleFactory;
      
      var(ForceTeam) int iForcedTeamNumber;
      
      function Activate(byte T)
      {
          if (!bNeverActivate && (!bActive || TeamNum != T))
          {
              TeamNum = iForcedTeamNumber;
              bActive = True;
              bPreSpawn = True;
              Timer();
          }
      }
      
      DefaultProperties
      {
          iForcedTeamNumber=0
      }

      Comment


        #18
        Thank you much sir
        I haven't built a readme for this map yet(still W.I.P.) but you'll get credit in that and probably in the map description as well

        Comment

        Working...
        X