How to use the GetMapXY function from bindings
Find comprehensive JavaScript bindings.GetMapXY code examples handpicked from public code repositorys.
126 127 128 129 130 131 132 133 134 135
}); } //参数: 方向, 0=右上,2=右下, 4=左下,6=左上 cga.turnDir = function(dir){ var xy = cga.GetMapXY(); var x = xy.x; var y = xy.y; switch(dir){ case 0: cga.TurnTo(x+2, y);break;
+ 3 other calls in file
GitHub: hzqst/CGAssistantJS
![hzqst profile picture](/hzqst.png?size=40)
148 149 150 151 152 153 154 155 156 157
cga.isTeamLeaderEx = ()=>{ return (cga.isTeamLeader == true || cga.getTeamPlayers().length <= 1); } cga.getMapInfo = () => { const info = cga.GetMapXY(); info.indexes = cga.GetMapIndex(); info.name = cga.GetMapName(); return info; };
+ 23 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)