Vehicle System

Darkenneko

TH.net Regular
Reaction score
3
So,
After searching for one on the Hive, I Found one, but it depleted health,
Which I believed was really dumb. So, I took it, made it do mana, I've also added a different way of getting into the vehicle.
Instead of Load Unit. I've included that the vehicle starts slow, but if you continue to have it move [Without stopping] It gains speed.
When you stop, and than start moving again, it starts back slow.
But, Now I need some help. I Want to make it so when you stop, it slides a little, than stop.
Than, I've made it so when you leave the vehicle through Unload all, the vehicle is given to neutral passive, and paused.
But, if you just click on your units portrait in Cargo hold, it doesn't work, How can I Fix that?

Here, I'll attach it to my post.
Thank you all for reading this. =]
-Calvin
PS - It will say made by Whoever, but its just a edit of his map, its just a experimental map to me.
 

Attachments

  • Fuel system 2.0.w3x
    102.3 KB · Views: 164

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
I might be wrong here but NP is a bad idea, you can't load into it if it is NP.
 

Darkenneko

TH.net Regular
Reaction score
3
I might be wrong here but NP is a bad idea, you can't load into it if it is NP.

Eh,
I shoulda explained it fully,
Theres a Peasant with ability called "Get into car".
When there is a vehicle thats 500 range from a Peasant it gets put into a Variable. [Used for later]
Also, if he uses that ability, the car becomes yours and automatically loads you.
This is what I'm having problems with, making it NP if the player doesn't use Unload all.
=/

@Furberg
Its alright mate, go get some sleep. =]
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
Sorry man, but this is the best I could come up with

Code:
Untitled Trigger 001
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Unload (Air Transports)
    Actions
        Set Temp_UnitGroup = (Units owned by (Owner of (Triggering unit)) matching (((Matching) is loaded into (Triggering unit)) Equal to True))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in Temp_UnitGroup) Equal to 0
            Then - Actions
                Unit - Change ownership of (Triggering unit) to Neutral Passive and Change color
            Else - Actions
        Custom script:   call DestroyGroup (udg_Temp_UnitGroup)
 

Darkenneko

TH.net Regular
Reaction score
3
Sorry man, but this is the best I could come up with

Code:
Untitled Trigger 001
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Unload (Air Transports)
    Actions
        Set Temp_UnitGroup = (Units owned by (Owner of (Triggering unit)) matching (((Matching) is loaded into (Triggering unit)) Equal to True))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in Temp_UnitGroup) Equal to 0
            Then - Actions
                Unit - Change ownership of (Triggering unit) to Neutral Passive and Change color
            Else - Actions
        Custom script:   call DestroyGroup (udg_Temp_UnitGroup)

Thanks,
But that will only work for if the unit uses unload all. [Which I have a trigger very similar to yours for.]
There might not be a way to get around this, but I Sure hope there is. =/

Thanks for trying man. I Appreciate it. =]
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
The only thing else I can think of I am not sure will work, it being 2 triggers, a unit loads into a vihickle, set add to temp unit group, then for the 2nd a unit enters playable map area, condition unit in temp unit group, then do your actionas. Not sure if it will work hower cause I am not sure if the unit is in the map area when loaded.
 

Darkenneko

TH.net Regular
Reaction score
3
Maybe,
I Don't know, I might have another go at it, I will probably end up doing complicated,
Hopefully someone else can spot me some tips as well,
Thanks. =]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top