Jump to content


Photo

Unit fall death coding help

mods bfme

  • Please log in to reply
1 reply to this topic

#1 knightsatwar

knightsatwar
  • Hosted
  • 10 posts

Posted 22 January 2015 - 10:57 PM

Hello all, knightsatwar here needing help

 

To add realism to BFME 1; I have been attempting to add a death weapon to units picked up and dropped by fell beasts/ eagles. Basically, I added a modified ent fall death weapon and added a death weapon behavior to all units when they die via splatting. However, the death weapon does not seem to work.

 

When playing the game, I have noticed that the "passenger" unit that is carried in the fell beast/eagle claws has less abilities or a different portrait then the normal variation of the unit. This leads me to believe that a sub/child object is created and killed from the flying unit's grab attack which is why my code does not work. Also the coding of the grab attack shows that the unit is instantly killed when the attack connects. The problem is, I have not found the location of these child/sub object units nor have I figured out how to spawn a proper unit to make the code work.

 

So I was wondering if anyone knows where these child/sub objects are located, or know how to code it so the units dropped are the normal variation. 

 

Or.... instead, is there a way to make it so the dropped unit becomes a projectile with similar behavior as a siege weapon projectile, or the "troll throwing a goblin" weapon? 

 

Thank you, knightsatwar

 

 



#2 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 22 January 2015 - 11:36 PM

These aren't really subobjects. Once a unit is grabbed, it is ripped of the horde and changes to a single unit. Instead it displays the unit portrait of the unit itself. If you take a Haradrim battalion for instance.. it consists of 5 Haradrim which are fused together by the horde object and the code inside it. Once the Nazgul swoops in, the grabbed Haradrim no longer belongs to MordorHaradrimHorde, but turns back into the single component, MordorHaradrim, and therefore changes its portrait because the single Haradrim has a different portrait defined.

 

I cannot help you more as I've yet to play with death types. I hope I could at least assist you a tiny bit :p


26285.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users