Announcement

Collapse
No announcement yet.

Importing Textures Is What I Want, But I Need More...

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

    Importing Textures Is What I Want, But I Need More...

    HELLO WORLD!

    I use the #EXEC IMPORT Function To Make Things Easier for me and now im wondering, is there a way to put Combiners, TexPanners, and FinalBlends in a .U file too???

    Thanks For Any Help.

    #2
    Pretty sure you could just do a "Begin Object Class=Combiner Name=Cow" somewhere in your defaults and assign it that way, sort of like GUI elements or karma parameters. Works with any type, really. Then you can assign the materials (check the class definitions for exact names) in the properties, and assign it to a variable.

    However, no gurantees any of that will work (but it should).

    Comment


      #3
      Thx, thats what i was thinking at first but i didnt know if there was an easier way, cuz i have never put special Materials in before.

      Thx

      Comment


        #4
        Example code from something I made:

        Code:
        var ConstantColor MyColor;
        var FinalBlend MyFinalBlend;
        var Combiner MyCombiner;
        
        simulated event Trigger(Actor Other,Pawn EventInstigator)
        {
            MyColor = New(None) class'ConstantColor';
            MyColor.Color.R = 255;
            MyColor.Color.G = 255;
            MyColor.Color.B = 255;
            MyColor.Color.A = InitialAlpha;
        
            MyCombiner = new(None) class'Combiner';
            MyFinalBlend = new(None) class'FinalBlend';
            MyCombiner.Material1 = FadeTexture;
            MyCombiner.Material2 = MyColor;
            MyCombiner.CombineOperation = CO_Use_Color_From_Material1;
            MyCombiner.AlphaOperation = AO_Multiply;
            MyFinalBlend.Material = MyCombiner;
            MyFinalBlend.TwoSided = true;
            MyFinalBlend.FrameBufferBlending = FB_AlphaBlend;
        }

        Comment


          #5
          Thx any way but its a default so ill just use Begins

          Comment


            #6
            Uhhh.

            Why Wont This Work???

            Code:
            Defaultproperties
            {
                Begin Object Class=TexPanner Name=GrnTexPanner
                    Material=Texture'MyPackage.MyTexture'
                    PanDirection=(Pitch=0.00,Yaw=16384,Roll=0.00), // Says Error, Bad Termination???
                    PanRate=0.25
                End Object
            }

            Comment


              #7
              wait i fixed it

              Comment

              Working...
              X