Button

From Awesomenauts Wiki
Jump to: navigation, search

Click here to return to the map editor's object list

For general attributes click here

You can use buttons to affect a lot of other game elements. Take a look at additional notes to see what can be done.

Field Description Possible values Type
pressableByHumanPlayers When enabled the button is only pressable by human players Yes / No
pressableByBotPlayers When enabled the button is only pressable by bots Yes / No
pressableByCreeps When enabled the button is only pressable by creeps Yes / No
pressableByTeamZero When enabled the button is only pressable by team red Yes / No
pressableByTeamOne When enabled the button is only pressable by blue Yes / No
pressableByTeamNone When enabled the button is only pressable by teamless creeps Yes / No
notPressableWhileTeamZeroOnIt When enabled the button will not react to the blue team and teamless creeps when it's pressed by the red team Yes / No
notPressableWhileTeamOneOnIt When enabled the button will not react to the red team and teamless creeps when it's pressed by the blue team Yes / No
notPressableWhileTeamNoneOnIt When enabled the button will not react to the blue and the red team when it's pressed by teamless creeps Yes / No
minimumCharactersRequired The minimum number of characters required to press the button for it to react Number
maximumCharactersAllowed The maximum amount of characters allowed on the button before it does not react anymore Number
timeRequiredBeforeCountsAsPress Amount of time required before the button is pressed while a character is in the button area Number/Seconds
timeToRemainPressedAfter Amount of time required before the button is not pressed while a character leaves the button area Numbers/Seconds
invertOnOff When enabled the button will be turned on by default and will be turned off when a character enters the area Yes / No
influenceName The name of the object you want the button to interact with Text
reactionSpeedForward The speed in which the button will be fully pressed(The higher the value the faster the speed) Number
reactionSpeedBackward The speed in which the button will be fully un-pressed(The higher the value the faster the speed) Number
autoPressAfterGameTime How far into the game it activates, set it to -1 for it to never activate after time Number
networkSynchingEnabled When disabled creepspawners connected to this button will not work. Also disables syncing position of connected named/affect areas etc. with the host; these will be calculataed client-side and the button becomes accessible via AI actions for non-host players. Yes / No

Elements affected by buttons[edit | edit source]

Element name Attribute you need to set to the name of the button Effect
Obstacle name The obstacle will move from startPosition to endPosition when the button is pressed.

If "disableCollisionWhenButtonActive" is checked nauts will be able to go through the obstacle when the button is pressed.

PlayerStartPosition availabilityInfluencedBy When a playerStartPosition is linked to a button, player will be able to respawn on it only when the button is pressed
Teleporter activationInfluencedBy The teleporter will be disabled when the button isn't pressed
Turret, Base, NamedArea name The object will move from startPosition to endPosition when the button is pressed.
Worm buttonID The worm will be active when the button is pressed
AffectArea positionInfluencedBy, activationInfluencedBy The area will move from startPosition to endPosition when the button is pressed if positionInfluencedBy is set.

The area will only be active when the button is pressed when activationInfluencedBy is set

Animation influenceName When the button is pressed, the current animation will switch from idleLoopAnimation to startAnimation to activeLoopAnimation.

When the button is released, the current animation will switch from activeLoopAnimation to endAnimation to idleLoopAnimation.

CreepSpawnerRepeater buttonID The creepSpawnerRepeater will only be able to spawn a creep when the button is pressed. Pressing the button will not force the creep to spawn.
CreepSpawnerOnce buttonID The creepSpawnerOnce will spawn one creep once when the button is pressed.
DamageArea influencedByName The damage area will transition from sizeIdle to sizeActive. Must have durationIdle set to 0.
HideArea influencedByName When the button is pressed the hideArea will reveal it's area to everyone

Additional notes[edit | edit source]

  • Changing animationDuration does nothing when an object is linked to a button, you will have to change reactionSpeedForward and reactionSpeedBackward instead
  • influenceOnDeath in Turret(modding) works almost like button (but may not work with object like hideArea)
  • All buttons must have a different name to work properly
  • If TimeToRemainPressedAfter is not 0, the button will activate when you leave it (even if timeRequiredBeforeCountsAsPress is set). This is probably a bug
  • If you need something special, try to think what you could do by spawning creeps on buttons!
  • Entities like Voltar's flying little bot will can enable buttons