• 0

    posted a message on [help] could need some advice with terrain

    Hi there. I am currently working on a survival-like 3rd person shooter map. I just wanted to ask for some advice with my terrain to improve, thats all. Maybe you guys could help me :)

    Link to slideshow

    Thanks in advance

    Posted in: Terrain
  • 0

    posted a message on Checking if a unit is moving or turning?

    Move and turn are both "move orders" so if you check for "any unit is issued an order to move" it will trigger when the unit turns, too.

    To check if a unit is moving from point a to point b is easy. just get the position and about 0.1s later the position again. compare them and you know if the unit is walking or turning. so you could try to make that a function like about:

    Unit is Moving
        Options: Function
        Return Type: Boolean
        Parameters
            unit = No Unit <Unit>
        Grammar Text: Unit Moving(unit)
        Hint Text: (None)
        Custom Script Code
        Local Variables
            Pos1 = No Point <Point>
            Pos2 = No Point <Point>
        Actions
            Variable - Set Pos1 = (Position of unit)
            General - Wait 0.1 Game Time seconds
            Variable - Set Pos2 = (Position of unit)
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Pos1 == Pos2
                Then
                    General - Return false
                Else
                    General - Return true
    

    Then you could do something like this

        Events
            Unit - Any Unit is issued an order to  Move
        Local Variables
        Conditions
            (Unit is Moving((Triggering unit))) == true
        Actions
    

    Maybe this helps you

    Posted in: Triggers
  • 0

    posted a message on Ordering unit to move and attack

    You could do that with triggers, too. The problem is, that they don't have a running attack animation. So when they attack, they look like floating.
    I have done that some time ago for cinematic stuff. Well, I stopped quickly after and began somethin else. Maybe this can help you.

    Posted in: Triggers
  • 0

    posted a message on Modifying the cursor look when clicking

    Well if I get it right you would have two options to do that:

    • Catalog fields (would be the easiest way)
    • Dialog + Dialog Item (Image)

    Problems:

    • I think you can't access the catalog fields for the cursors.
    • You could hide the mouse but can't track mouse position without the player clicking.
    • Camera - Lock camera mouse relative mode On for player X would be an option to track mouse position without needing to click. But with that active the mouse is centered the whole time.
    Posted in: Triggers
  • To post a comment, please or register a new account.