跳跃

跳跃是一个能让任何角色跳跃起来的插件命令。

用途:角色跳跃时,能够躲闪敌人的投射物。

如何使用

通过命令调用跳跃并设置参数。

条件分歧

跳跃功能与条件分歧搭配,有助于建立更加复杂的系统。

checkJump(target, 'state')

Target:事件ID,玩家’player’

State: startedJump , jumping , landed


checkJump('player', 'jumping')

玩家正在空中时,返回true。

checkJump('player', 'startedJump')

玩家刚开始跳跃时,返回true。