i'm trying to make a bomb that just targets the ground. if an enemy is within the area of effect it is supposed to get affected by the effects of the bomb. what i have now is that the player can target a creature directly as well as the ground but that is not desirable because it's possible for the player to then just click on the enemy instead of having to aim at the ground and try to catch the enemy within the aoe. (the encounter is supposed to be played without pause.
removing targeting of hostile creature from aoe spell
Débuté par
gordonbrown82
, juil. 03 2010 04:29
#1
Posté 03 juillet 2010 - 04:29
#3
Posté 03 juillet 2010 - 07:27
thanks. when i put 32 (target ground) in the targettype field in the ABI_base and then use display floaty message with ObjectToString(stEvent.oTarget) i get -1 as a result. my thinking is that if a target is returned when the ground is targeted i can get the location of that target and then use getobjectsinshape with the location i got. this doesn't work however..
#4
Posté 04 juillet 2010 - 08:03
There is nothing wrong having -1 on stEvent.oTarget if the spell can only be cast on ground. Tageted location is stored in stEvent.lTarget.





Retour en haut







