Skip to Main Content

BTD_Mod_Helper​.Extensions​.WeaponModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

WeaponModelExt Class

Extensions for WeaponModels

public static class WeaponModelExt

Inheritance System.Object  WeaponModelExt

Methods

WeaponModelExt.GetEject(this WeaponModel) Method

Gets the eject position of the weapon as a vector

public static Vector3 GetEject(this WeaponModel weapon);

Parameters

weapon Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

Returns

Il2CppAssets.Scripts.Simulation.SMath.Vector3

WeaponModelExt.SetEject(this WeaponModel, Vector3, bool, bool, bool) Method

Sets ejectX/ejectY/ejectZ all at once

public static void SetEject(this WeaponModel weapon, Vector3 eject, bool ignoreX=false, bool ignoreY=false, bool ignoreZ=false);

Parameters

weapon Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

eject UnityEngine.Vector3

ignoreX System.Boolean

ignoreY System.Boolean

ignoreZ System.Boolean

WeaponModelExt.SetEject(this WeaponModel, Vector3, bool, bool, bool) Method

Sets ejectX/ejectY/ejectZ all at once

public static void SetEject(this WeaponModel weapon, Vector3 eject, bool ignoreX=false, bool ignoreY=false, bool ignoreZ=false);

Parameters

weapon Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

eject Il2CppAssets.Scripts.Simulation.SMath.Vector3

ignoreX System.Boolean

ignoreY System.Boolean

ignoreZ System.Boolean

WeaponModelExt.SetEmission(this WeaponModel, EmissionModel) Method

Sets the emission for a WeaponModel, properly handling the child dependents

public static void SetEmission(this WeaponModel weapon, EmissionModel emission);

Parameters

weapon Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

emission Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

WeaponModelExt.SetProjectile(this WeaponModel, ProjectileModel) Method

Sets the emission for a WeaponModel, properly handling the child dependents

public static void SetProjectile(this WeaponModel weapon, ProjectileModel projectile);

Parameters

weapon Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

projectile Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

To learn how to download BTD Mod Helper and install mods, click here