• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Is it possible to use custom AssetBundle particles for ParticlesMuzzleFire on autoTurret class?

Musmann

Refugee
Hi,I am making a custom turret mod (autoTurret class in blocks.xml) with a custom 3D model from an .unity3d AssetBundle.

I want to use a custom muzzle flash particle system from my asset bundle instead of a vanilla effect. I tried referencing it directly via the path;property name="ParticlesMuzzleFire" value="#@modfolder:Resources/cram.unity3d?Custompartikel_Partikel"/

When the turret fires, the vanilla effect disappears, but my custom particle doesn't load and the console throws an error: err unknown particle effect.

Is it actually possible to use custom asset bundle particles for automated turrets via XML, or is this property hardcoded to vanilla effects only? If it is possible, what is the correct XML syntax to make the game recognize the custom effect?

Thanks for any info!
 
Back
Top