Three thing.
1.) Instructions are pretty good and I was able to get this to work just fine with a Hellion and Marine.
2.) What does "Set player 14 to all players." mean? Does this mean I need to copy the Action that makes player 14 ally or what?
3.) Do you know if there is a way to have the "name" of the Unit change after the vehicle is mounted? i.e. when just looking at it the name is Hellion but after someone mounts it and takes ownership it changes to Hellion - [name of unit that mounted it]
Good guide for your first time.
Link always provides the most recent version of the guide!
Updated on 6/1/2010
ravenkaizer Regular ShmoeEdit: Multiplayer support implemented now.
This is my first tutorial I've ever made so bare with me on this.
This system will allow your unit/hero to use units as a mount of vehicle.
First open the Data table by Pressing F7. Select Abilities in the pull down tab.
Do a search for "bunker" and duplicate "Bunker - Load-Unload (Bunker)". Go ahead and check everything. Double click the copied one and rename it "Vehicleseat" and click suggest and press OK. Select "Bunker - Vehicleseat" from the left and change cargo max, size, and space to 1
click Load validators and select none, and Target filters and check ally.
Next select units in the pull down tab.
Search for the hellion and select it. at the top right double click Abilities + and add new ability and select "Bunker - Vehicleseat"
I also forgot in the abilities list also add "Attack Redirect" to the list. That redirects damage to the vehicle/mount.
Go down 9 and select command card and add a new button anywhere you choose and set it to the following.
Now to set the ability in play. Press F6 to open the triggers and create a new trigger. Name it something like P14ally.
.Events .Game - Map initialization .Local Variables .Conditions .Actions .Player - Make player 14 and player 1 treat each other as Ally
Set player 14 as ally to all players. This prevents anyone from auto attacking unoccupied vehicle/mounts.
now to make a trigger to enter the vehicle.
Events Unit - ("Hellion" from the Global data table) Loads cargo Local Variables Conditions Actions Unit - Change ownership of (Triggering unit) to player 1 and Change Color
In the event doublt click "Unit: Any Unit" and in the window select the "Function" bullet and select "Value From Data Table (Unit Reference)" and hit ok
The even should slightly change. At the begining of it where it says "name" Type in "Hellion" minus "" and hit ok.
For this to work in multiplayer maps, all you do is add a "condition" that player checks the cargo unit owner.
Now to make a trigger to exit your vehicle/mount.
Events Unit - (Triggering cargo unit) Unloads cargo Local Variables Conditions (Owner of (Triggering unit)) == 1 Actions Unit - Change ownership of (Triggering unit) to player 14 and Change Color AI - Order (Triggering unit) to ( Hold Fire) using tactical AI logic
Again double click your event and click the "Function" bullet and select "Triggering cargo unit".
Under condition select "comparison" and hit ok.(Owner of (Triggering unit)) == 1(the number represents player number, 1 being player 1, 2 being player 2, ect.)
After following this Guide you SHOULD have a working mount system.If anything isn't working properly let me know, or if you even like this tutorial let me know :p
Again, sorry for poor instructions. It's my first tutorial for anything after all...