Jump to content
Sign in to follow this  
someguy11

Operations Center prevent ion cannon

Recommended Posts

I'm trying to make the operations center spawn a dummy object:

 

This dummy object would then use RestrictionType to prevent the ion cannon within a radius.

 

However I don't know how to make the operations center spawn a dummy object when the radar jamming missile has launched into the air (to sync RestrictionType with the radar jam effect)

Edited by someguy11

Share this post


Link to post

Have the Radar jamming power chained with an OCL special power that spawns your dummy object. This dummy object can then have a lifetime that matches the time of the radar jamming effect (if that is what you are going for).

 

In terms of using the standard spawn behaviour, not a good idea. Most of the fine control of that module is gone because the 'SlaveWatcherBehavior' module no longer works (fully or at all).

Share this post


Link to post

Have the Radar jamming power chained with an OCL special power that spawns your dummy object.

I don't know how to do this

Can you provide an example

Share this post


Link to post

You could try to see if this kind of set up works:

<SpecialPower id="ModuleTag_DispatchRadarJammingMissile" SpecialPowerTemplate="SpecialPowerDispatchRadarJammingMissile" UpdateModuleStartsAttack="true"></SpecialPower>
      <ActivateModuleSpecialPower id="ModuleTag_ManipulatorDeviceUpdate" SpecialPowerTemplate="SpecialPowerDispatchRadarJammingMissile" UnpackTime="5.0s">
        <SpecialPowerModules ModuleId="ModuleTag_RadarJammingMissile" TriggerType="SELF_POSITION" />
        <SpecialPowerModules ModuleId="ModuleTag_RadarJammingPing" TriggerType="SELF_POSITION" />
      </ActivateModuleSpecialPower>
      <RadarJamSpecialPower id="ModuleTag_RadarJammingMissile" SpecialPowerTemplate="SpecialPowerRadarJamMissile" JamRadius="-1.0" JamDuration="10s"></RadarJamSpecialPower>
      <OCLSpecialPower id="ModuleTag_RadarJammingPing" SpecialPowerTemplate="SpecialPower_DeployRadarJamPing" UpdateModuleStartsAttack="true" OCL="OCLDeployRadarJamPing" CreateLocation="USE_OWNER_OBJECT" />
      <AISpecialPowerUpdate id="ModuleTag_NODOpsRadarJamming" CommandButtonName="Command_FireRadarJammingMissile" ReinforceDistance="300.0" SpecialPowerRadius="300.0" SpecialPowerAIType="SPECIAL_POWER_REINFORCEMENT" MaxFrequency="2700" />
      <MonitorSpecialPowerTimerUpdate id="ModuleTag_RadarMissileReadyToFireUpdate" SpecialPowerTemplate="SpecialPowerDispatchRadarJammingMissile" ReadyCondition="SPECIALPOWER1_READY" />

If not, have a look at the GDI Commando's special power dispatch, for an example of dispatching multiple special powers with a single butoon

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×