View Single Post
Old 02-24-2003, 03:58 PM   #2 (permalink)
Phoib
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default Re: Creating Passenger Spaces in units

Quote:
Originally Posted by ErAzAnGeL
In the FactionUnit.ini put this set of code in the behaviour section as module 10:
Please note, that if you have a custom vehicle, and want to add this yourself: Make sure, real sure, that there are no double ModuleTag_XX's, (where XX can be any integer between 01 and 99) otherwise, you can't get the game to start!

Quote:
Originally Posted by ErAzAnGeL
Behavior = TransportContain ModuleTag_10
PassengersAllowedToFire = Yes
Slots = 1
InitialPayload = AmericaInfantryRanger 1
ScatterNearbyOnExit = No
HealthRegen%PerSec = 10
DamagePercentToUnits = 10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End

When built, the unit will contain one Ranger.

Now, in CommandSet.ini under the CrusaderTankCommandSet insert two new things:

CommandSet AmericaTankCrusaderCommandSet
1 = Command_ConstructAmericaVehicleBattleDrone
2 = Command_ConstructAmericaVehicleScoutDrone
3 = Command_TransportExit
9 = Command_Evacuate
10 = Command_AttackMove
11 = Command_Guard
12 = Command_Stop
End
To have more then one trooper, add as many (Italic) Command_TransportExit as there are (Underlined) slots, so with slots = 6 you'll have 3 till 8 as Command_TransportExit.
Phoib is offline   Reply With Quote