设置玩家是否可攻击 [已废弃]

队伍
已废弃
服务端
Both Mobile and PC

设置可攻击玩家

声明

func SetAttackablePlayer_Deprecated(attacker entity<Player>, target entity<Player>, attackable AttackableType)
go

参数

输入

名称 类型 描述
造成伤害的实体 Player 玩家
目标 Player 可攻击玩家
可攻击 AttackableOption 是否可攻击