Page 1 of 1

Projectile's target - how to check?

Posted: Sun Aug 28, 2016 9:31 pm
by apriori
How to check if spitter's or worm's projectile targets the player? I've found projectiles that are represented by entities. How to find out their target? And is it possible to change it or clear? Maybe entity.set_command is for this case?

Re: Projectile's target - how to check?

Posted: Mon Aug 29, 2016 4:37 am
by Adil
set_command() is for use on units.
Target field can be specified on creation of projectile by script, but it's not accessible afterwards.
You've got to try something else.