Posted by: mr_hymn_ - Tuesday, March 14, 2017 1:11:53 AM
I know it's sounds weird for asking this question. As I kept modding I might need to uninstall and reinstall for a clean game and place the mod again. What I am facing is when I am editing my own mod I found out that some informations or data has been changed but game keep showing an old data along with my new one. Sounds confusing? Let see the example. I am created a tank using laser general crusader model or laser tank to be specific. Now I am adding the slow death to the tank. Made a tank having the effect similar to Uplink cannon when killed. A light beam out and kaboom. So I tested in the game and look very fine but what I see next is from the OCL that tank destroyed always spawn couple rangers out so I changed the final OCL to Weapon like below. Behavior = SlowDeathBehavior ModuleTag_16 DeathTypes = ALL -CRUSHED -SPLATTED DestructionDelay = 2000 FX = INITIAL FX_ParticleUplinkDeathInitial OCL = INITIAL OCL_SDILinkLasers FX = FINAL FX_StructureMediumDeath Weapon = FINAL TankDeathWeapon << this one is my own choice. End Tank will explode after the particle effect which really beautiful however every time my tank was destroyed those rangers still keep spawning and dies from the final explosion. I am using bomb truck death weapon as the final effect for good effect.

Posted by: Annihilationzh - Tuesday, March 14, 2017 9:27:20 AM
Need more info. What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.

Posted by: klingondragon - Tuesday, March 14, 2017 10:05:52 AM
The death fx for the uplink canon is creating the rangers. Copy the fx and remove the line about rangers.

Posted by: mr_hymn_ - Tuesday, March 14, 2017 10:08:12 AM
[quote=Annihilationzh;143871]Need more info. What's the rest of the object code? Have you modified ObjectCreationList.ini? If so, you need to post any relevant changes.[/quote] This is original code from Particle cannon from faction.ini Behavior = SlowDeathBehavior ModuleTag_18 ; don't run this death if we are under construction... ExemptStatus = UNDER_CONSTRUCTION DestructionDelay = 2000 FX = INITIAL FX_ParticleUplinkDeathInitial OCL = INITIAL OCL_SDILinkLasers FX = FINAL FX_StructureMediumDeath OCL = FINAL OCL_ParticleUplinkDeathFinal End Of course when I am put this in my laser tank it does have uplink lighting effect and explosion BUT it does spawn couple rangers out I also checked this code from OCL.ini >> OCL = INITIAL OCL_SDILinkLasers it contains no creating any objects rather than a cool laser explosion And this code is what they spawn the rangers >> OCL = FINAL OCL_ParticleUplinkDeathFinal ; ---------------------------------------------- ObjectCreationList OCL_ParticleUplinkDeathFinal CreateObject ObjectNames = AmericaInfantryRanger IgnorePrimaryObstacle = Yes Disposition = SEND_IT_OUT DispositionIntensity = 4 Count = 6 RequiresLivePlayer = Yes End ; ---------------------------------------------- I checked all the FX and none giving a code of spawning rangers. So I removed it and changed to Behavior = SlowDeathBehavior ModuleTag_18 ; don't run this death if we are under construction... ExemptStatus = UNDER_CONSTRUCTION DestructionDelay = 2000 FX = INITIAL FX_ParticleUplinkDeathInitial OCL = INITIAL OCL_SDILinkLasers FX = FINAL FX_StructureMediumDeath Weapon = FINAL TankDeathWeapon End So at the end the tank should just simply explode without spawning rangers but in game still keep spawning rangers along with my new explosion death weapon that I am just added I am copied this code and use on other tanks and works perfectly but only my laser crusader have a trouble even I gave them an exact same code of slow death begavior