• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
Malhorne
Reaction score
45

Profile posts Latest activity Postings Experience Albums Resources About

  • to me the best thing ever is "LOL"
    all bad thing can turn into a good thing with adding lol at the end of the words
    Ya, I've been having trouble with the crash system too because there is no way to get the real Z for the chopper. I had it working a bit at one point but it was never accurate. It would always crash when it was still too high.
    It took me like 15 minutes to get the colors, but it's worth it. Now everyone can have a colorful birthday!

    By the way, how much do you like the new message? Is it like, "Yay... it's colorful. I wish he made me a colorful cake though." or "Omg those colors are so awesome and that message totally made my day! Getting six other birthday messages made my day, but that colorful one made my day even more!" or "I really don't care about the colors. Thanks for wishing me happy birthday though."
    Ya, thats my back up plan. I guess its not that important. I just feel like the flight system is not that interesting without it. I'm also wishing I could make it rotate in place. There just aren't enough active key triggers to make it work. Have you flown the chopper? What do you think about the flight overall?
    Ya, I currently have the strafe as an ability. So that way, when you "cast" strafe left (for example) it stops the move command.
    Pastebin.
    This is all I have for the moment. I'm at work. You will have to add the move order in. I took it out because of the bug. Everything else is the same.

    I though "unit is issued an order" only applied to player controlled units. If I'm wrong, then ya... thats likely the problem. good catch.
    The key movement command trigger on/off is the same as before. Here are the new additions.
    I realize there are other problems with it besides the one I mentioned (namely the stop location) but the major issue is that
    the chopper does not even come close to going the right way. I can fix the stop after the move works.

    Move order
    Events
    Unit - A unit Is issued an order targeting a point
    Conditions
    Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (Issued order) Equal to (Order(move))
    Then - Actions
    Set OrdLoc = (Target point of issued order)
    Else - Actions

    Stop order
    Events
    Unit - A unit Is issued an order with no target
    Conditions
    Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (Issued order) Equal to (Order(stop))
    Then - Actions
    Set OrdLoc = CLoc
    Else - Actions

    Strafe Right
    Events
    Time - Every 0.01 seconds of game time
    Conditions
    Actions
    Set MoveRight = ((Position of Chopper[1]) offset by 3.00 towards ((Facing of Chopper[1]) - 90.00) degrees)
    Set RealX = (X of MoveRight)
    Set RealY = (Y of MoveRight)
    Custom script: call SetUnitY(udg_Chopper[1], udg_RealY)
    Custom script: call SetUnitX(udg_Chopper[1], udg_RealX)
    Unit - Order Chopper[1] to Move To (OrdLoc offset by 3.00 towards (Facing of Chopper[1]) - 90.00) degrees))
    Well, I tried adding a move command for when the arrow key is used. This would in theory keep the chopper flying straight. The move command reset the destination by the same offset distance and angle as the arrow key movement. But it was a huge failure, for whatever reason it sent the chopper heading across the map in the opposite direction.

    I got the order location, then offset it by the distance of the choppers sideways motion and at the same angle. however, something went massively wrong. :( I think I might not have the skills to create this system.
    Yeah xD
    Now i see the hour and i think shit i got 15m to wear something and to go xD !
    Is it just me, or you had a spike of activeness lately. ( I've never seen you before until last week )

    EDIT: Happy Birthday!
    Ok, I'll give it a shot and let you know how it turns out tomorrow. Thank you so much for everything!
    Yeah, I try to wish everyone happy birthday every day. I also try to welcome new users, but sometimes I miss them because they get on while I'm on Battle.Net and I forget to check the Hive or when I'm sleeping (and not checking the Hive).
    Don't sweat it. Just having people talking about it helps even when they don't find a solution exactly. I'll try this out tonight. If you want you could write out a script for an example GetOrderPointLoc.

    Is this right?

    Actions -
    custom script: GetOrderPointLoc(udg_TempLoc)

    Then

    Actions -
    custom script: SetOrderPointLoc(offset 5, 90 degree from (udg_TempLoc))???
    Will it find the current order or does it only respond to an event? For example, if the event is period, will that command return null or does it return any order that has currently been issued? If it requires an event that is ok, I can add an event trigger "Unit is issued an order targeting a point." But I would rather put it into my periodic event trigger if I can.
    [stable]GetOrderPointLoc Will that command get me the current order if I use a periodic event or does it only respond to a unit event like this:


    Unit - A Unit is issued an order targeting a point.[/stable]
    Actually, that gives me an idea. I need it to work with the move order, so thats not good...but! I could have the [>] key also move the target destination at the same time as the chopper moves. Is that possible?
    No he's busy, but he pointed me to a list of JASS scripts, so I guess I will try to figure it out myself. I knew a flight system was an ambitious endeavor when I started but I didn't think I would have to write it from scratch. I think the only answer so far lies in a full key movement system that does not use the GUI "move" command. I do appreciate your help though, sorry if I seemed frustrated (though I am) its not your fault. Do you have any suggestions for a good key movement system? or how to add lift and rotation to a key movement system? I'm also having trouble with the "crash" sequence, did you try the map? I'm trying to make it so that the chopper crashing if it runs into trees or hillsides.
    Was dealing with 2 shit homeworks which make me nuts, at least I have time to upload IsDestTree (GUI and Jass Version) to Map Section after some discussion with Almia.
    Good, as I wanted, I hate when people are using fire with fire, that's why I use a bit offensive word (which later I edit) to shut the mess :wink:
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top