Difference between revisions of "Crab.attack()"

From 8x9craft
Jump to: navigation, search
(Created page with "<source lang=js> function attack(): boolean function attactUp(): boolean function attackDown(): boolean </source> Make crab attack all mobs in front of, above or below it. ''...")
 
 
Line 4: Line 4:
 
function attackDown(): boolean
 
function attackDown(): boolean
 
</source>
 
</source>
Make crab attack all mobs in front of, above or below it.
+
crabの前、上、下にいるmobに攻撃します。
  
'''Returns:''' true or false depending on whether crab attacked something or not.
+
'''Returns:''' 攻撃に成功したらtrue、失敗したらfalseを返します。
  
=== Examples ===
+
=== 使用例 ===
  
 
<source lang=js>
 
<source lang=js>
 +
//前に攻撃
 
crab.attack();
 
crab.attack();
 
</source>
 
</source>

Latest revision as of 06:26, 14 July 2017

function attack(): boolean
function attactUp(): boolean
function attackDown(): boolean

crabの前、上、下にいるmobに攻撃します。

Returns: 攻撃に成功したらtrue、失敗したらfalseを返します。

使用例

//前に攻撃
crab.attack();

See also

Navigation menu

Internal error

Jump to: navigation, search
[4ced948bfae8681f78ef55b9] 2024-03-28 13:37:50: Fatal exception of type "Error"

Navigation menu