• 0

    posted a message on Traceline?

    I'm looking for a way to figure out if something has been selected in this space map. I've attached some pictures and the map for you to see.

    If it helps, I already have the xyz positions of all the 'objects' in variables. I just need a way to see what the mouse clicked using a 'traceline without units' I think.

    Things I've looked at or tried:

    -Tracelines which use units but I do not use units. I use actors with models instead.

    -Creating units at the position of things and using the trigger event unit selected, but the units themselves don't seem to get to the correct position.

    -Messing with the actors events to return some kind of response to mouse clicks but it's beyond me.

    Posted in: Triggers
  • 0

    posted a message on [Solved] Terrain deformers : problems with unit's height...

    It's been a long time but I've dealt with terrain deformers if you have any more questions.

    Posted in: General Chat
  • 0

    posted a message on Is anything wrong with this? the math

    Solved.

    Posted in: Triggers
  • 0

    posted a message on Is anything wrong with this? the math
    PointOffsetTowardsPoint3D
        Options: Function
        Return Type: Point
        Parameters
            PointA = No Point <Point>
            PointB = No Point <Point>
            Distance = 0.0 <Real>
        Grammar Text: PointOffsetTowardsPoint3D(PointA, PointB, Distance)
        Hint Text: (None)
        Custom Script Code
        Local Variables
            L.Point = No Point <Point>
            L.A = 0.0 <Real>
            L.L = 0.0 <Real>
            L.Q = 0.0 <Real>
            L.X = 0.0 <Real>
            L.Y = 0.0 <Real>
            L.Z = 0.0 <Real>
        Actions
    ------- you need a and q angels. l is 2d distance. a is 2d angle, and q is the angle between vector (from source to target) and the surface
    ------- a = atan2(dx, dy)
    ------- l = sqrt(dx^2, dy^2)
    ------- q = atan2(l, dz)
    ------- to get dx, dy, and dz back, you use these:
    ------- x = r * cos (q) * cos(a)
    ------- y = r * cos(q) * sin(a)
    ------- z = r * sin(q)
    ------- r = 128 for you
    ------- or (if you meant l = 128), r = 128 * cos(q)
            ------- This function is from the GAx3 mod which subtracts one point form other.
            Variable - Set L.Point = (PointA - PointB)
            Variable - Set L.A = (Atan2((X of L.Point), (Y of L.Point)))
            ------- The Square root function couldn't take two number (like in your instructions) but I had to guess what to do.
            Variable - Set L.L = (Square root((((X of L.Point) ^ 2.0) + ((Y of L.Point) ^ 2.0))))
            Variable - Set L.Q = (Atan2(L.L, (Height of L.Point)))
            Variable - Set L.X = (* (Distance, (Cos(L.Q)), (Cos(L.A))))
            Variable - Set L.Y = (* (Distance, (Cos(L.Q)), (Sin(L.A))))
            Variable - Set L.Z = (* (Distance, (Sin(L.Q))))
            General - Return (Point(L.X, L.Y, L.Z))
    
    Posted in: Triggers
  • 0

    posted a message on Firing Trigger with If-Then Clause

    @Hockleberry: Go actions

    Repeat forever:

    wait 0.1

    IF - unit is in region or distance between units is 0.5

    THEN - Stuffs

    ELSE

    Posted in: Triggers
  • 0

    posted a message on IF unit is moving *Solved*

    Uh....

    condition - units current order = move action - stuffs


    condition - unit is idle action - stuffs

    Posted in: Triggers
  • 0

    posted a message on Manipulate Mini-Map?

    I don't get it.

    So, multiple rooms on a map separated by things like cliffs.

    A player can control multiple units in different rooms.

    And the camera needs to jump to the different units but it would go through the cliffs, which is bad.

    Correct?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Camera fine tuning - DOF

    Check that your video settings are on high.

    Posted in: Cinematic Creation
  • 0

    posted a message on Question

    One would assume the whole game is copyrighted.

    Posted in: Audio Development
  • 0

    posted a message on How to make your interface prettier and easier to understand

    I like the read. Informative.

    Posted in: General Chat
  • 0

    posted a message on Dynamic Texture Surface / Dynamic Terrain

    Tried terrain deformations before and it doesn't end well.

    for top-down view its ok but not for 1st/3rd view.

    Posted in: Miscellaneous Development
  • 0

    posted a message on What Is Next Project (WINP)

    I like using the editor but I never published anything and I have some random things I've made but never used. I thought to myself that having a forum and posting what I'm doing may help me. It has a bit.

    The endgame is to make a open rpg map the way i imagine it. Which tends to be hard because I don't like making liner rpgs. I want a map with allows the player to do almost anything they want. Random worlds to explore, working on a complex quest system (go-to, riddles, puzzles, protect, defend, local level, map level, world level), complex character system (you can craft your own equipment and magic using components), etc.

    Posted in: Map Feedback
  • 0

    posted a message on Trigger Lag?

    Welcome to the world of debugging!

    Make a init trigger opening the debug window.

    Add a lot of debug messages (with conversions) to see whats running and if the values are correct.

    have fun.... mahaha

    Posted in: Triggers
  • 0

    posted a message on What Is Next Project (WINP)

    Update

    -Added simple sky objects, like sun, moon, planets, etc.

    -Reorganized code for easier viewing.

    -Changed the random map generator trigger to use GUI variables. Much easier to add new things now.

    Posted in: Map Feedback
  • 0

    posted a message on What Is Next Project (WINP)

    Update.

    • Added lighting to the maps randomness.
    • Changed the UI to remove useless things.
    • Changed the minimaps.
    • Added creep flooring as a option for terrain.
    • Maps can be saved and loaded as needed, allowing players to make massive maps.
    • Dialog updated with more options and a system to connecting dialogs to almost any unit stat. Still need to add the other options.
    Posted in: Map Feedback
  • To post a comment, please or register a new account.