GetHitVar(*)

当玩家处于gethit(受击状态)状态中,返回指定的hit参数.

格式:
GetHitVar(参数名)

参数:
参数名
有效的可用于检测的参数名有下列:
xveladd, yveladd, type, animtype, airtype, groundtype, damage, hitcount, fallcount, hitshaketime, hittime, slidetime, ctrltime, recovertime, xoff, yoff, zoff, xvel, yvel, yaccel, hitid, chainid, guarded, fall, fall.damage, fall.xvel, fall.yvel, fall.recover, fall.time, fall.recovertime.

返回值类型:
取决于指定的hit参数.查看详情.

错误条件:

详情:

示例:
trigger1 = GetHitVar(yvel) < -5.5
hit的指定y速度小于-5.5则触发.