isFaceToFace

<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> </head> <body> <p><font color="#0000FF">int</font><font color="#00FF00"> npc</font>.<font color="#FF8C00">isFaceToFace</font>(<font color="#0000FF">int </font>索引1, <font color="#0000FF">int </font>索引2)</p> <p><strong>函数功能:</strong></p> <p><font color="#006400">主要检查两个索引是否正面对面</font></p> <p><strong>参数说明:</strong></p> <table border="1" width="37%" id="table1"> <tr> <td width="152">索引1</td> <td>[整型]</td> <td width="309">可以是NPC,玩家,宠物的索引</td> </tr> <tr> <td width="152">索引2</td> <td>[整型]</td> <td width="309">同上</td> </tr> </table> <p><strong>返回值:</strong></p> <p> </p> <p><strong>使用例子:</strong></p> <p><font color="darkgreen">--</font><font color="#006400">设置完成旗标1的</font><font color="darkgreen">,类似NPC脚本中的Event_End:1<br> </font><font color="#0000FF"> if</font><font color="#00FF00"> npc</font>.<font color="#FF8C00">isFaceToFace</font>(meindex, charaindex)<font color="#0000FF"> == </font><font color="#FF0000">1</font><font color="#0000FF"> then<br> &nbsp;&nbsp;&nbsp; </font><font color="#FF0000">print</font>(<font color="#C0C0C0">&quot;两者之间正好面对面&quot;</font>)<font color="#0000FF"><br> end<br>  </font></p> <p><strong>参数说明:</strong></p> </body> </html>