Posted by: DerWolf - Sunday, January 4, 2015 4:19:45 PM
Hello, I have searched the forums of modding communities that have this game and I cannot find anything that matches what I am looking for. I would like to be able to have the unit exit a vehicle eg. GLA combat bike, but have it reusable. This is the behavior module that I took from the combat bike and edited for it, any information anyone has would be greatly appreciated on this subject. [code] Behavior = RiderChangeContain ModuleTag_16 ;A list of each valid rider that is allowed to ride this object. Each rider is ;assigned a modelcondition state, a weaponset flag, an object status bit, and ;a commandset override. The actual object is hidden inside the container so the ;visible rider is fluff. Also riders are deleted (not killed) when the bike is ;destroyed, so all deaths must be OCLs on the bike. Rider1 = AmericaInfantryColonelBurton RIDER1 WEAPON_RIDER1 STATUS_RIDER1 AmericaInfantryCenturionCommandSet SET_NORMAL Rider2 = AmericaInfantryRanger RIDER2 WEAPON_RIDER2 STATUS_RIDER2 AmericaInfantryCenturionCommandSet SET_NORMAL Rider3 = AmericaInfantryMissileDefender RIDER3 WEAPON_RIDER3 STATUS_RIDER3 AmericaInfantryCenturionCommandSet SET_NORMAL Rider4 = AmericaInfantryPilot RIDER4 WEAPON_RIDER4 STATUS_RIDER4 AmericaInfantryCenturionCommandSet SET_NORMAL Rider5 = AmericaInfantryPathfinder RIDER5 WEAPON_RIDER5 STATUS_RIDER5 AmericaInfantryCenturionCommandSet SET_NORMAL Rider6 = AmericaInfantryCIAOfficer RIDER6 WEAPON_RIDER6 STATUS_RIDER6 AmericaInfantryCenturionCommandSet SET_NORMAL ;ScuttleDelay = ;ScuttleStatus = ;Standard TransportContain stuff Slots = 1 ScatterNearbyOnExit = No HealthRegen%PerSec = 0 DamagePercentToUnits = 100% ; This module will Delete the rider on death, but we need to kill him as well so he doesn't pick up the bike's salvage crate. BurnedDeathToUnits = No ; And no Burned death. AllowInsideKindOf = INFANTRY ExitDelay = 250 NumberOfExitPaths = 1 ; 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 DoorOpenTime = 0 End [/code] P.S. I attached the full unit .INI file. [ATTACH]1631[/Attach]

Posted by: DerWolf - Sunday, January 4, 2015 9:12:55 PM
Never mind I found the answer. [code] Behavior = CreateObjectDie ModuleTag_X10 DeathTypes = NONE +TOPPLED CreationList = OCL_Centurion_ToppledHulk TransferPreviousHealth = Yes End [/code] and then adding a -TOPPLED to all death modules and creating a [code] Behavior = SlowDeathBehavior ModuleTag_X11 DeathTypes = NONE +TOPPLED SinkDelay = 0 SinkRate = 1.5 ; in Dist/Sec DestructionDelay = 0 End [/code] you can get a seamless result.

Posted by: CommieDog - Sunday, January 4, 2015 9:52:22 PM
That's actually pretty clever. I would have thought it impossible.

Posted by: Annihilationzh - Sunday, January 4, 2015 10:52:02 PM
For future reference, you can also spawn a fake passenger using the same method as portable structures. That will allow infantry to get on and off the bike.

Posted by: Gameanater - Monday, January 5, 2015 6:57:45 PM
[quote=Annihilationzh;135436]For future reference, you can also spawn a fake passenger using the same method as portable structures. That will allow infantry to get on and off the bike.[/quote] If don't mind me asking, what exactly does this have to do with the building?

Posted by: Annihilationzh - Monday, January 5, 2015 9:39:11 PM
[quote=Gameanater;135445]If don't mind me asking, what exactly does this have to do with the building?[/quote] It took me a while to understand what you were asking. I'm still not entirely sure, but here goes... Overlords can spawn a gattling cannon as a passenger inside themselves. If you give this code to a combat bike, you can spawn infantry on the combat bike, which will cause the driver to get off the bike and be replaced. Now you can make your infantry fake (invisible, unattackable, etc) and make the upgrade free and instant and name the upgrade "Evacuate." Voila. The bike now looks like it's empty when you evacuate it, but it remains standing because it still has a rider.

Posted by: UTD^Force - Tuesday, January 6, 2015 4:34:42 AM
[quote=Annihilationzh;135449][quote=Gameanater;135445]If don't mind me asking, what exactly does this have to do with the building?[/quote] It took me a while to understand what you were asking. I'm still not entirely sure, but here goes... Overlords can spawn a gattling cannon as a passenger inside themselves. If you give this code to a combat bike, you can spawn infantry on the combat bike, which will cause the driver to get off the bike and be replaced. Now you can make your infantry fake (invisible, unattackable, etc) and make the upgrade free and instant and name the upgrade "Evacuate." Voila. The bike now looks like it's empty when you evacuate it, but it remains standing because it still has a rider.[/quote] Cool, that's really smart :)