function attackPlayerWithEffect (client-side)
Available since version: 0.1.9
Note
The victim will receive damage calculated damage by the game.
This function is used to play effect and deal damage from attacker. It will only work with hero/npc.
Declaration
void attackPlayerWithEffect(int attackerId, int victimId, int damageType, int damage, bool isProjectile, int level, string effect)
Parameters
intattackerId: the attacker id.intvictimId: the victim id.intdamageType: the damage type, can be0. For more information Damage constants.intdamage: the amount of damage that , can be0.boolisProjectile: the value which will determine if effect is projectile.intlevel: the level of the VisualFX.stringeffect: the name of the VisualFX, e.g"SPELLFX_TELEPORT".