• 0

    posted a message on [HELP] Vehicle Entry Triggers not working like they should!

    Heres all the code:

    QuadA1_E-within
        Events
            Unit - P1_Hero Enters a distance of 2.0 from 'Unit'
            ------- 'Unit' should be Quad_A1; Quad_A1 is my vehicle variable
        Local Variables
        Conditions
            P1_QuadA1_E == false
        Actions
            Variable - Set P1_QuadA1_E = true

    ---------------------------------------------------------------------------------------------

    QuadA1_E-leaves
        Events
             Unit - P1_Hero leaves a distance of 2.0 from 'Unit'
            ------- 'Unit' should be Quad_A1; Quad_A1 is my vehicle variable
        Local Variables
        Conditions
            P1_QuadA1_E == true
        Actions
            Variable - Set P1_QuadA1_E = false

    ---------------------------------------------------------------------------------------------

    QuadA1_Enter
        Events
            UI - Player 1 presses E key Down with shift Allow, control Allow, alt Allow
        Local Variables
        Conditions
            And
                Conditions
                    (Owner of Quad_A1) == 0
                    P1_QuadA1_E == true
        Actions
            Variable - Set P1_QuadA1_E = false
            Unit - Hide P1_Hero
            Unit - Change ownership of P1_Hero to player 0 and Retain Color
            Unit - Make P1_Hero Uncommandable
            Unit - Change ownership of Quad_A1 to player 1 and Change Color
            Text Tag - Hide Quad1_Press_E-Tag for (All players)

    ---------------------------------------------------------------------------------------------

    QuadA1_Exit
        Events
            UI - Player Any Player presses Exit Vehicle
        Local Variables
        Conditions
            (Owner of Quad_A1) == 1
        Actions
            Variable - Set P1_QuadA1_E = true
            Unit - Change ownership of Quad_A1 to player 0 and Change Color
            Unit - Change ownership of P1_Hero to player 1 and Retain Color
            Unit - Move P1_Hero instantly to (Position of Quad_A1) (No Blend)
            Unit - Show P1_Hero
            Unit - Make P1_Hero Commandable
            Variable - Set QuadA1_Pos = (Position of P1_Hero)
            Text Tag - Show Quad1_Press_E-Tag for (All players)
            Text Tag - Attach Quad1_Press_E-Tag to Quad_A1 with height offset 1.0

    ---------------------------------------------------------------------------------------------

    QuadA1_texttag-show
        Events
            Unit - P1_Hero Enters within 2.0 of (QuadA1_Pos offset by (0.0, 0.0))
        Local Variables
        Conditions
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            (Owner of Quad_A1) == 0
                            (Owner of (Triggering unit)) != 0
                Then
                    Text Tag - Show Quad1_Press_E-Tag for (All players)
                Else

    ---------------------------------------------------------------------------------------------

    QuadA1_texttag-hide
        Events
            Unit - P1_Hero Leaves within 2.0 of (QuadA1_Pos offset by (0.0, 0.0))
        Local Variables
        Conditions
        Actions
            Text Tag - Hide Quad1_Press_E-Tag for (All players)

    Posted in: Miscellaneous Development
  • 0

    posted a message on [HELP] Vehicle Entry Triggers not working like they should!
    I tried using "Unit Enters/Leaves Range Of Unit" but it does not allow me to use my unit variable. The variable does not appear under the variable tab. I need the vehicle to be a variable because I need to detect when the unit dies so I can re-spawn it.
    Posted in: Miscellaneous Development
  • 0

    posted a message on [HELP] Vehicle Entry Triggers not working like they should!
    I have made a really cool vehicle entry system for a game I want to release but if I get in the vehicle, move somewhere else and exit the vehicle, the variable of the vehicle does not update. So to get back into the vehicle I have to go back to where it spawns and enter it. Does anyone else have this problem? Anyone know a solution? Its hard to find any good information/tutorials on this in google or this site. This is how it works. - An event detects when the player's hero is within the range of 2 of the vehicle. - Player has to press E to enter. - Triggers hide the players hero and make him uncommandable. - It gives control of the vehicle to the player. - To exit the player clicks the 'Exit Vehicle' button while in the vehicle. (I made the button) - It teleports the hero to the vehicle and makes him visible and commandable. - It gives control of the vehicle back to neutral. This works perfectly if you don't move the vehicle. The problem is that, for some reason, in the variable for the vehicle, the position does't change when the vehicle moves. I have tried making a separate variable just for the units position and updating it when the user exits the vehicle, but no luck. I would really appreciate some help and thanks for your replies. Here are some pics: <u>Approach vehicle:</u> Vehicle Problems 1 <u>Text Tag Shows Instructions:</u> Vehicle Problems 2 <u>Enters Vehicle:</u> Vehicle Problems 3 <u>Click 'Exit Vehicle':</u> Vehicle Problems 4 <u>Leaves Vehicle:</u> Vehicle Problems 5Vehicle Problems 6 <u>Enter Vehicle Again:</u> Vehicle Problems 8 <u>Enters Vehicle:</u> Vehicle Problems 9 <u>Move Vehicle:</u> Vehicle Problems 10 <u>Click 'Exit Vehicle':</u> Vehicle Problems 11 <u>PROBLEM! Cannot press 'E' to enter.</u> Vehicle Problems 12 <u>Move back to vehicle spawn:</u> Vehicle Problems 13 <u>Text Tag shows on vehicle but user isn't near vehicle!</u> Vehicle Problems 14 <u>Enters vehicle way over there!</u> Vehicle Problems 15 Thats my problem... Thanks for any help. =)
    Posted in: Miscellaneous Development
  • 0

    posted a message on Online Multiplayer Custom Map Program

    I made a program in my spare time that allows people to play custom maps online in StarCraft 2 Beta! It's very simple, took me no time and it will allow people to help test your maps or just play them online.

    Steps:

    1) Download the map from sc2mapster or get it from someone.

    2) Decide what map u want to replace of blizzards. My program only allows you to replace the Novice Maps. Which no-one uses anyways. ;)

    3) Use my program to replace the map.

    4) Host or have someone host that map.

    5) Join and have fun! =D

    Posted in: General Chat
  • 0

    posted a message on [HELP] Drop Marines

    guess not

    Posted in: Miscellaneous Development
  • 0

    posted a message on [HELP] Drop Marines

    I made a super strong, super big, mega marine that attacks like a tank and can drop down smaller marines. After I place where I want my little marines to drop, the drop container thing doesn't animate. The marines just appear... can anyone help me?

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