Skip to Main Content

BTD_Mod_Helper​.Api​.Helpers​.WeaponHelper


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Helpers

WeaponHelper Class

A wrapper around WeaponModels for making them easier to create

public class WeaponHelper : BTD_Mod_Helper.Api.Helpers.ModelHelper<WeaponModel>

Inheritance System.ObjectModelHelperBTD_Mod_Helper.Api.Helpers.ModelHelper<Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel>  WeaponHelper

Constructors

WeaponHelper(string) Constructor

Begins construction of a new WeaponModel with sensible default values

public WeaponHelper(string name="");

Parameters

name System.String

The model name (don't need the WeaponModel_ part)

Properties

WeaponHelper.AnimateOnMainAttack Property

public bool AnimateOnMainAttack { get; set; }

Property Value

System.Boolean

See Also

WeaponHelper.Animation Property

public int Animation { get; set; }

Property Value

System.Int32

See Also

WeaponHelper.AnimationOffset Property

public float AnimationOffset { get; set; }

Property Value

System.Single

See Also

WeaponHelper.Behaviors Property

public WeaponBehaviorModel[] Behaviors { get; set; }

Property Value

Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponBehaviorModel[]

See Also

WeaponHelper.CustomStartCooldown Property

public float CustomStartCooldown { get; set; }

Property Value

System.Single

See Also

WeaponHelper.Eject Property

public Vector3 Eject { get; set; }

Property Value

Il2CppAssets.Scripts.Simulation.SMath.Vector3

See Also

WeaponHelper.Emission Property

public EmissionModel Emission { get; set; }

Property Value

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

See Also

WeaponHelper.FireBetweenRounds Property

public bool FireBetweenRounds { get; set; }

Property Value

System.Boolean

See Also

WeaponHelper.FireWithoutTarget Property

public bool FireWithoutTarget { get; set; }

Property Value

System.Boolean

See Also

WeaponHelper.Projectile Property

public ProjectileModel Projectile { get; set; }

Property Value

Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

See Also

WeaponHelper.Rate Property

public float Rate { get; set; }

Property Value

System.Single

See Also

WeaponHelper.StartInCooldown Property

public bool StartInCooldown { get; set; }

Property Value

System.Boolean

See Also

WeaponHelper.UseAttackPosition Property

public bool UseAttackPosition { get; set; }

Property Value

System.Boolean

See Also

Operators

WeaponHelper.implicit operator WeaponHelper(WeaponModel) Operator

Wraps a model

public static BTD_Mod_Helper.Api.Helpers.WeaponHelper implicit operator WeaponHelper(WeaponModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

Returns

WeaponHelper

WeaponHelper.implicit operator WeaponModel(WeaponHelper) Operator

Unwraps the model

public static WeaponModel implicit operator WeaponModel(BTD_Mod_Helper.Api.Helpers.WeaponHelper helper);

Parameters

helper WeaponHelper

Returns

Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel

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