Thread: hideing....
View Single Post
Old 06-30-2004, 02:51 PM   #5 (permalink)
CodeCat
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

There should be a way to deploy a unit with a key, or with a commandbutton. There is a DEPLOY command in CommandMap.ini, but it's commented out and I don't know if it works. It's worth a try at least. And you could get the unit to auto-deploy by firing a weapon. Give the unit a TERTIARY weapon with "AutoChooseSources = TERTIARY NONE". Then remove the unit's standard AIUpdate and give the unit this:

Code:
Behavior = DeployStyleAIUpdate ModuleTag_04
  Turret
    TurretTurnRate        = 0
    ControlledWeaponSlots = TERTIARY
    InitiallyDisabled     = Yes
  End
  AutoAcquireEnemiesWhenIdle = No ;whatever you had here for the other AIUpdate
  PackTime = 3333
  UnpackTime = 3333
  TurretsFunctionOnlyWhenDeployed = Yes
  TurretsMustCenterBeforePacking = Yes
  ManualDeployAnimations = Yes
End
If I'm not mistaken this will get the unit to deploy only if it needs to use its turret. That turret is only attached to the TERTIARY slot, which is never used, so it should work fine when it's mobile. But by making it fire its TERTIARY weapon (which is just a dummy), it will stop and deploy to fire.
CodeCat is offline   Reply With Quote