How do i make the tank commander enter tanks
How do i make the tank commander enter tanks
#2
Give us an example of what your thinking of doing.
If your thinking of liek the Blitzkrieg mod where there are crews for the tanks, basically you must give your tanks' entities the hold_ext from a halftrack of a building. I suggest if you've seen a mod do what you what, you should open up that mod in Mod Studio and see how they've done it.
@LD I think he mean like an hero. If this hero enter a tank, the tank becomes the special features from the hero (extended sight, autorepair or something else - like in "Panzers").
@gunner1 I think, then the ai wont be able to use this feature, only human players can work with them.
#4
Yeah, i had a feeling that was what he meant.
Well once you've copied the hold_ext over, go into it and change the num_slots and num_squad_slots to however many men and squads you want the tank to hold. Then go into the on_loaded_hold_actions table (also in the hold_ext), add an apply_modifiers_action, then add whatever modifiers you want the tank to gain while it's garrisoned.
If you want only a specific squad to be able to go into the tank, go into the type_holdable folder, make a copy of one of those files and call it something unique like hold_tank_commander.rgd. Now go into the vehicle's hold_ext, go into the acceptable_types table and add the new hold type in, the line you add should look like;
type_holdable\hold_tank_commander.lua
Now go into that squad you want to go into the tank, go into their squad_holdable_ext, and in the hold_type line paste the hold type line.
Now only one squad will be able to enter that tank, and when they do the tank will gain special modifiers, and if the unit exits the tank will lose those modifiers.
Thanks LD, Jagd, I messed arround and found that I had to add him to the slot file and works now.
LD I cant stop playing your COI mod how are you doing with any new updates..
#6
Working towards a release, should be in the next month, we've really picked up the pace today with all the new models that have been released recently, they were pretty much all we were waiting for.
There are currently 1 users browsing this thread. (0 members and 1 guests)