Hi guys, I have 2 questions.
1) When an enemy is hit by a spell/bullet (/hit event), I want that it checks the flag of that spell/bullet. How do I do that? It should look something like this:
function corruptedmage_hit()
{
if (my.STATE != 4) //checking if the ent is not dead
{
if (you)
{
??-> if (you.flag == flag 2)
{
my.HEALTH -= you.DAMAGE; //both HEALTH and DAMAGE are skills
}
}
.....
2) I want that a spell detects ents in a small area when it explodes and than picks those ents and deals damage to does ents. How do I do this? For the damage I use a skill which is set for the spell projectile as soon as the spell is cast.
Thanks for taking the time, I would be darn gratefull if someone could answer the questions ^^.