Death Weapon not working
Posted 08 June 2019 - 05:03 PM
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?
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...
Posted 09 June 2019 - 01:18 PM
That did it, thanks! Really strange though that FireWeaponWhenDead doesn't have the same effect, but ok. Solved.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users