You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varattackModel=towerModel.GetAttackModel();// The first attack of the tower
16
+
varweapon=attackModel.weapons[0]!;// towerModel.GetWeapon(): The first weapon the tower has
17
+
varprojectile=weapon.projectile;// The projectile the tower shoots
18
+
19
+
weapon.rate=0.33f;// Attack speed in seconds, add an f at the end if non-integer number
20
+
weapon.SetEmission(newArcEmissionModel("Emission",3,0f,45f,null,false,false));// Makes the tower shoot 3 darts in a 45 degree spread
21
+
22
+
vardamageModel=projectile.GetDescendant<DamageModel>();// You can do projectile.GetDamageModel(), but it will error if it is not directly attached to the projectile
23
+
damageModel.damage++;// 1 -> 2, ++ increments by 1, -- decrements by 1
24
+
damageModel.immuneBloonProperties|=BloonProperties.Black|BloonProperties.White;// |= will make it also not able to hit that type, using just = will override it, using vertical bars after the equals will do all of those.
25
+
// For example, this can't pop black bloons, white bloons, frozen bloons, or lead bloons
"",true,false,null,false,false,false,100));// Makes bloons 10% slower for 5 seconds
29
+
30
+
projectile.UpdateCollisionPassList();
31
+
32
+
projectile.AddBehavior(newDamageModifierForTagModel("DamageModifierForTagModel_Moabs","Moabs",1.5f,0,false,true));// Does 1.5x more damage to Moab Class Bloons, For a Moab specifically, do just "Moab" as the tag.
33
+
projectile.hasDamageModifiers=true;
34
+
35
+
towerModel.IncreaseRange(10);// Increase towerModel.range by 10, and the range for each attackModel by 10 (towerModel.GetAttackModels().ForEach(attackModel => attackModel.range += increase));
36
+
37
+
towerModel.GetDescendants<FilterInvisibleModel>().ForEach(filter =>filter.isActive=false);// Set this to true if you don't want it to see camo
publicoverrideintCost=>815;// 815 cash in medium mode
43
+
44
+
publicoverridestringIcon=>Portrait;// Portrait is ClassName-Portrait (.png)
45
+
46
+
publicoverridestringDescription=>"This is an Example Monkey, woohoo!";// The text the shown under the name of the tower in the upgrades menu.
47
+
publicoverridestringDisplayName=>"Example Monkey";// If the class is called MOABMonkey for example, it'll show as M O A B Monkey in game. If you have MoabMonkey, it'll show as Moab Monkey in game. You'd use this to fix it and have it shown as "MOAB Monkey". By default, this is Name.Spaced();
0 commit comments