Jump to content


Photo

Kill structure with other structure being killed


  • Please log in to reply
9 replies to this topic

#1 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 07 September 2011 - 09:39 AM

Hey Guys,

How is possible to make a structure die when the fortress dies? because one of my buildings needs to be a base building but i don't want it to be exactly like a base.

i changed this code: MP_COUNT_FOR_VICTORY

but it made the building not work. so i am trying to make it so that when the fort dies it dies with the fort.

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 07 September 2011 - 05:14 PM

A weapon which kills the structure? And has a filter for only that structure? Perhaps you have already tried this though :p
Ridder Geel

#3 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 07 September 2011 - 05:35 PM

Nope, I have no idea on how i could make a weapon to kill it when another structure is dead.

#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 07 September 2011 - 06:07 PM

Behavior = SlowDeathBehavior ModuleTag_SlowDeath
		DeathTypes			= ALL 
		SinkDelay			= 5000
		SinkRate			= 10.0     ; in Dist/Sec - fast!
		DestructionDelay	= 1800
        Weapon				= FINAL RingHeroDeathShockwave
	End
Give something similar to this to the structure, and change the weapon... This needs to be given to the structure that dies, as in if he dies the other one dies.
It works for units, i personally never tried it on buildings, but i think it should work... ;)
Ridder Geel

#5 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 07 September 2011 - 06:30 PM

if i give this to the fort and made a blast that is 200 wide that does 10000 damage then it would kill all structures in the area....

#6 Irenë Hawnetyne

Irenë Hawnetyne

    -

  • Hosted
  • 3,073 posts

Posted 07 September 2011 - 07:56 PM

Uno problemo, boss! What if they've built their fortress across the map, like I do with Angmar. (It's especially useful on High Pass - lots of mountains=natural wall hubs)

"Everyone's a hero when there's nowhere left to run."

 

Auxiliary Skarn, 2333rd Cohort


#7 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 07 September 2011 - 08:15 PM

Thats why i metioned the object scalar/filter?
Ridder Geel

#8 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 07 September 2011 - 10:41 PM

Thats why i metioned the object scalar/filter?

Sometimes you got to post some code... seems he may not know what that is

 DamageNugget                        ; A basic Nugget that just does damage
    Damage        = 10000
    Radius        = 200.0
    DelayTime     = 0
    DamageType    = SIEGE
    DamageFXType  = FLAME
    DeathType     = DETONATED
    SpecialObjectFilter = NONE +YourStructureName
  End

it will work on buildings ..I'm curious to know what is the structure

#9 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 08 September 2011 - 12:30 AM

the one i am making.

#10 Sauron's eyes and ears

Sauron's eyes and ears
  • Members
  • 23 posts
  • Location:Travaling around Middle Earth
  • Projects:Edoras and Bree maps
  •  Brosing the forums for anything insulting to Sauron.

Posted 02 October 2011 - 06:48 PM

the one i am making.


LOL
What structure are you making, or have you made it yet?
I appoligise for any spelling mistakes, I just can't spell that well all the time!
If you wish to kill me, please post about it in my profile comments and allow 1 mounth for me to read it and prepare my defences(maibie 2 when I am being lazy or am cought up in work, or a game, or something).

I just saw this: Saurons Eyes and Ears
and: Special Extended Edition
spooky.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users