Forged Alliance Forever Forged Alliance Forever Forums 2017-06-05T23:47:54+02:00 /feed.php?f=41&t=14711 2017-06-05T23:47:54+02:00 2017-06-05T23:47:54+02:00 /viewtopic.php?t=14711&p=150351#p150351 <![CDATA[Re: Is there a way to dynamically forbid or allow targets ?]]>
Anni : i remember resin smoker talked about, i saw it in a video. It add selected units in the target priority stack. I will try to find it.

Exo : yes, it may work partially. I put my bpid category at the top, reset the weapon. But If my unit is alone, it will still be hit since there are no more higher targets. But at this time, i can weapon block the opponent.
But i have a problem since my special power is linked to a class added to my unit (Sync.BaseClass property). Any bpid category unit can be promoted to this power.

My question : is it possible that the target priorities system allows to give unit id, not only bpid categories to the priority target stack ?

Statistics: Posted by Franck83 — 05 Jun 2017, 23:47


]]>
2017-06-05T23:10:24+02:00 2017-06-05T23:10:24+02:00 /viewtopic.php?t=14711&p=150350#p150350 <![CDATA[Re: Is there a way to dynamically forbid or allow targets ?]]>
ofc it will work for a type of unit and not a specific unit.

you can also order a weapon to UnitWeapon:SetTarget(entity) and set it to not the thing you are firing at if it has your ability turned on.

which is likely what you want. or something.

Statistics: Posted by Exotic_Retard — 05 Jun 2017, 23:10


]]>
2017-06-05T23:04:41+02:00 2017-06-05T23:04:41+02:00 /viewtopic.php?t=14711&p=150349#p150349 <![CDATA[Re: Is there a way to dynamically forbid or allow targets ?]]> Statistics: Posted by nine2 — 05 Jun 2017, 23:04


]]>
2017-06-05T18:47:28+02:00 2017-06-05T18:47:28+02:00 /viewtopic.php?t=14711&p=150329#p150329 <![CDATA[Is there a way to dynamically forbid or allow targets ?]]>
I wanna do a special power that allows my unit to not be targeted for some kind others units for a limited time.

I found the unit:SetDoNotTarget(true) method, but it desactivate targetting for all opponents with no distinction. But i want to do counter units. The weapon:SetValidTargetsForCurrentLayer() is only valuable for layers categories (ground, air, water, sub...). The weapon:SetTargetingPriorities() only controls priorities but not the targettng tracking itself.

Somebody has some experience to restrict targeting on some units only ? Or some idea ?

Statistics: Posted by Franck83 — 05 Jun 2017, 18:47


]]>