|
发表于 2012-5-22 14:21:23
|
显示全部楼层
native SetUnitX takes unit whichUnit,real newX returns nothing // 设置单位的X坐标
native SetUnitY takes unit whichUnit,real newY returns nothing // 设置单位的Y坐标
你是用T做的吧,那么在你的循环动作中加两句:
自定义脚本: call SetUnitX(udg_majia,GetUnitX(GetTriggerUnit()))
自定义脚本: call SetUnitY(udg_majia,GetUnitY(GetTriggerUnit()))
// udg_majia 是你的马甲单位的全局变量,如果你是设置了局部变量就用局部的。
// GetUnitX/Y(..) 这个一看就懂,就是获得单位的坐标值
// GetTriggerUnit() 这个你应该知道吧:获取触发单位
触发里好像有这个:动作 -> 单位 -> 设置单位X坐标 |
|