Jump to content


Photo

Death Weapon not working


Best Answer Miraak5 , 08 June 2019 - 09:47 PM

this code will not work well for what you are trying to get working
If your unit use a SlowDeathBehavior then add that line inside the module

    Weapon                = FINAL ShockwaveFinal

(insted of FINAL you can use INITIAL or MIDPOINT)

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,021 posts
  • Projects:Blue Wizard Mod
  •  yay blue
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 08 June 2019 - 05:03 PM

Hi,

I've struggled to get a custom Death Weapon to work, maybe someone can help me.

    Behavior = FireWeaponWhenDeadBehavior ModuleTag_11
        StartsActive    = Yes
        DelayTime        =  1000
        DeathWeapon        = ShockwaveFinal
        WeaponOffset    = X:0 Y:0 Z:1
     End
Weapon ShockwaveFinal 
    IdleAfterFiringDelay = 0
    AttackRange = LOT3A_GANDALF_WORD_OF_POWER_RANGE
    MinimumAttackRange = 0.8
    WeaponSpeed = 401         ; dist/sec
    MinWeaponSpeed = 241
    MaxWeaponSpeed = 601      ; dist/sec Upper limit on scaling, when attacking past nominal "max" range
    ScaleWeaponSpeed = Yes ; Used for lob weapons, scales speed proportional to range
    RadiusDamageAffects = ENEMIES NOT_SIMILAR
    DelayBetweenShots = 5000               ; time between shots, msec
    PreAttackDelay        = 2600
    PreAttackType         = PER_ATTACK ; Do the delay each time we attack a new target
    FireFX = FX_IsildurBlast
    FiringDuration      = 1400

  DamageNugget                        ; A basic Nugget that just does damage
    Damage        = 5000
    Radius        = 1000.0
    DelayTime     = 0
    DamageType    = FORCE
    DeathType     = NORMAL
  End
    MetaImpactNugget                    ; A Nugget that throws things back with force
        HeroResist            = .75
        ShockWaveAmount   = 70.0
        ShockWaveRadius   = 500.0
        ShockWaveTaperOff = 1.0
        ShockWaveZMult    = 1.000
        ShockWaveSpeed      = 700.0
    End
End

Nothing is happening after my unit dies, no damage dealt and not FX played. Why is my weapon not called when my unit dies? Does anyone have an idea?


26285.png


#2 Miraak5

Miraak5

    Dragonborn

  • Members
  • 324 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, BFME1 Patch 1.08
  •  BIG coding, Map scripting and AI coding

Posted 08 June 2019 - 09:47 PM   Best Answer

this code will not work well for what you are trying to get working
If your unit use a SlowDeathBehavior then add that line inside the module

    Weapon                = FINAL ShockwaveFinal

(insted of FINAL you can use INITIAL or MIDPOINT)


Edited by Miraak5, 08 June 2019 - 09:50 PM.

  • Echo likes this

He was the first...


#3 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,021 posts
  • Projects:Blue Wizard Mod
  •  yay blue
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 09 June 2019 - 01:18 PM

That did it, thanks! Really strange though that FireWeaponWhenDead doesn't have the same effect, but ok. :thumbsupxd: Solved.


26285.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users