function attackPlayerWithEffect (client-side)
Available since version: 0.1.9
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.
void attackPlayerWithEffect(int attackerId, int victimId, int damageType, int damage, bool isProjectile, int level, string effect)
intattackerId: the attacker id.
intvictimId: the victim id.
intdamageType: the damage type, can be
0. For more information Damage constants.
intdamage: the amount of damage that , can be
boolisProjectile: the value which will determine if effect is projectile.
intlevel: the level of the VisualFX.
stringeffect: the name of the VisualFX, e.g