Difference between revisions of "Turtle.attackUp"

From ComputerCraft Wiki
Jump to: navigation, search
(Corrected mapping from "Boolean" to "Boolean (type)")
(Add toolSide argument)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
|name=turtle.attackUp
 
|name=turtle.attackUp
 
|api=turtle
 
|api=turtle
 +
|args=[<nowiki/>{{type|string}} toolSide]
 
|returns=[[boolean_(type)|boolean]] whether the turtle succeeded in attacking upwards
 
|returns=[[boolean_(type)|boolean]] whether the turtle succeeded in attacking upwards
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Attempts to attack above the turtle.
 
|desc=Attempts to attack above the turtle.
 
}}
 
}}
 +
 +
==See also==
 +
*[[turtle.attack]]
 +
*[[turtle.attackDown]]
  
 
[[Category:Lua_Core_Functions]]
 
[[Category:Lua_Core_Functions]]

Latest revision as of 10:34, 24 October 2018

Grid Redstone.png  Function turtle.attackUp
Attempts to attack above the turtle.
Syntax turtle.attackUp([string toolSide])
Returns boolean whether the turtle succeeded in attacking upwards
Part of ComputerCraft
API turtle


See also