tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Under a weapon there is FireOCL. I understand this fires it from the actual weapon. So would it be possible to make it fire an OCL that kills itself?
Thanks for all your help by the way.

Ps- there are no examples of this in the game, before someone tells me to check.
Sponsor
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Basically, I want the unit to comit suicide once it fired its weapon;)
precision_bomber
14 years ago
You can do it the sneaky way by having the weapon do a 'DamageDealthAtSelfPosition'.
Though it wouldn't kill it all the time.

Or.

You can use any type of OCL for FireOCL.

The OCL for the unit to commit suicide would be hard to make.
You could though, make a weapon object the has a 'LifetimeUpdate' that expires instantaneously, and a 'FireWeaponWhenDead' ModuleTag.

The 'FireWeaponWhenDead' ModuleTag should have an invisible weapon that causes damage around itself(Like a carpet bomb).

Then you can make your OCL(more likely a CreateObject one) for it.
Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Thanks, that's it;)
tomeister
  • tomeister
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Strangely, this all seems to work on some units like dozers, but when I try teleporting a building- my SDI cannon, te new object is created, but the weapon fired to kill itself does not kill itself. Do you know why it behaves like that?