• 0

    posted a message on M3 Exporter

    I can get my model to export.

    But when i import it back or import to starcraft it shows nothing. in 3ds max it shows a tiny tiny circle thing i cant make bigger.

    I made a cube then put edit mesh. and then export. what am i doing wrong?

    Posted in: Third Party Tools
  • 0

    posted a message on [Tutorial, Data] The RollCopter, Drunk Marauder, etc by Rocker Actor

    Is there a way to Have this data driven. When my Variable X = 15 the pitch gos to 15?

    Posted in: Tutorials
  • 0

    posted a message on How To Change A Units Yaw And Pitch With Code

    How To Change A Units Yaw And Pitch With Code

    What Is Yaw And Pitch?

    Functions

    ChangeOrientation(target,yaw,pitch)

    Takes the desired target(unit), yaw, pitch. It then changes the targets(unit) yaw and pitch Instantly.

    ChangePitch(target,pitch)

    Takes the desired target(unit), pitch. It then changes the targets(unit) pitch Instantly.

    ////////////////////////////////////////////////////
    // ChangeOrientation                              //
    ////////////////////////////////////////////////////
    void ChangeOrientation (unit target, fixed yaw, fixed pitch) 
    {    	
        // Variable Declarations
        fixed forwardX;
        fixed forwardY;
        fixed forwardZ;
        fixed upX;
        fixed upY;
        fixed upZ;
    
        // Variable Initialization    
        forwardX = Cos(yaw) * Sin(pitch);
        forwardY = Sin(yaw) * Sin(pitch);
        forwardZ = Cos(pitch);
        upX = 0;
        upY = 0;
        upZ = 0;
        
        // Implementation
        libNtve_gf_SendActorMessageToUnit(target, libNtve_gf_SetRotation(forwardX, forwardY, forwardZ, upX, upY, upZ));
    }
    
    ////////////////////////////////////////////////////
    // ChangePitch                                    //
    ////////////////////////////////////////////////////
    void ChangePitch(unit target, fixed pitch)
    {
        // Variable Declarations
        fixed yaw;
        fixed forwardX;
        fixed forwardY;
        fixed forwardZ;
        fixed upX;
        fixed upY;
        fixed upZ;
    
        // Variable Initialization
        yaw = UnitGetFacing(target);  
        forwardX = Cos(yaw) * Sin(pitch);
        forwardY = Sin(yaw) * Sin(pitch);
        forwardZ = Cos(pitch);
        upX = 0;
        upY = 0;
        upZ = 0;
        
        // Implementation
        libNtve_gf_SendActorMessageToUnit(target, libNtve_gf_SetRotation(forwardX, forwardY, forwardZ, upX, upY, upZ));
    	
    }
    

    Notes

    This only works when the unit isn't moving. If a unit, turns upside down at any point it will roll 180 Degrees. Ground units don't seem to work even if you make them float.

    Credits

    Arkless eXirrah Twinmold20 Grogian Rover2341

    Attached Map

    The attached map allows you to change the pitch and yaw by pressing A + D For Yaw, And W + D For Pitch. It was made by Grogain and Edited by Rover2341. It is a GUI Version.

    Posted in: Tutorials
  • 0

    posted a message on How can you change a units "PITCH" After The Units Created?

    I think I solved, with help...

    This works right?

    ////////////////////////////////////////////////////
    // ChangeOrientation                              //
    ////////////////////////////////////////////////////
    void ChangeOrientation (unit target, fixed yaw, fixed pitch) 
    {    	
        // Variable Declarations
        fixed forwardX;
        fixed forwardY;
        fixed forwardZ;
        fixed upX;
        fixed upY;
        fixed upZ;
    
        // Variable Initialization    
        forwardX = Cos(yaw) * Sin(pitch);
        forwardY = Sin(yaw) * Sin(pitch);
        forwardZ = Cos(pitch);
        upX = 0;
        upY = 0;
        upZ = 0;
        
        // Implementation
        libNtve_gf_SendActorMessageToUnit(target, libNtve_gf_SetRotation(forwardX, forwardY, forwardZ, upX, upY, upZ));
    }
    
    Posted in: Triggers
  • 0

    posted a message on How can you change a units "PITCH" After The Units Created?

    Mostly Ported from link above from twinmold.

    Here is what I have If it helps.

    But might be easier to look at link above and mess with that code. As this has additional stuff so I could test it.

    I am slightly under the impression that is has to do with the models, or Perhaps the way I am doing this the math is off But its pretty much a direct copy from link above. Warcraft must have somthing that doesnt want these guys going at 90 degrees. or 180 degrees for that matter.

    Posted in: Triggers
  • 0

    posted a message on How can you change a units "PITCH" After The Units Created?

    K Great It works fine.

    Only Issue Now Is that It will only go like 70 degrees. I need it to go all 360.

    Posted in: Triggers
  • 0

    posted a message on Tutorial Request

    How can you change a units "PITCH" After The Units Created?

    [B]What?[/B] I would like function that will change the units pitch.

    [B]Why[/B] Will Make Roller Coaster Map alot easier to make and maintain.

    [B]Note[/B]: I am not looking how to change a doodads pitch in the editor. This is something that can be run in the game.

    [B]Desired Function[/B]

    ChangeUnitAngles(Unit, Yaw, Pitch)

    The function takes the a unit and the desired pitch and yaw. It then changes the pitch and yaw of the unit.

    [B]This Is what I mean When i say "Pitch" And "Yaw":[/B]

    [IMG]//upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png" rel="noopener nofollow" target="_blank">http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png[/IMG">http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png[/IMG]

    [B]Any Ideas?[/B]

    Posted in: Tutorials
  • 0

    posted a message on How can you change a units "PITCH" After The Units Created?

    What?

    I would like function that will change the units pitch.

    Why?

    Will Make Roller Coaster Map alot easier to make and maintain.

    Note: I am not looking how to change a doodads pitch in the editor. This is something that can be run in the game.

    Desired Function

    ChangeUnitAngles(Unit, Yaw, Pitch)

    The function takes the a unit and the desired pitch and yaw. It then changes the pitch and yaw of the unit.

    This Is what I mean When i say "Pitch" And "Yaw":

    http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png

    Any Ideas?

    EDIT (A Unit Made After The Map Has Started) EDIT

    Posted in: Triggers
  • To post a comment, please or register a new account.