Aller au contenu

Photo

making enemy create an aoe stun a bit in front of him


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
i've been using a heartbeat to make the boss do a stun every 6 seconds or so positioned on himself. i would however prefer to have him make a stun with the center in front of him and i suppose also learn how to not activate the stun ability through a heartbeat but rather through some tactics 2da or something. the ideal would be to have a weapon animation play, for example a sledgehammer being used and when it hits close to the ground that place will create the aoe stun.

Modifié par gordonbrown82, 13 juin 2010 - 07:23 .


#2
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages
If you need to get a location in front of a creature, then you can do the following:

// Distance from your creature to the final position.
const float DISTANCE_TO_FINAL_POSITION = 5.0f;

object oMyCreature = GetObjectByTag("my_creature");
vector vMyCreaturePosition = GetPosition(oMyCreature);
vector vMyCreatureOrientation = GetOrientation(oMyCreature);

// Position coordinates of the location in front of your creature.
vector vFinalPosition = Vector(vMyCreatureOrientation.x * DISTANCE_TO_FINAL_POSITION + vMyCreaturePosition.x, vMyCreatureOrientation.y * DISTANCE_TO_FINAL_POSITION + vMyCreaturePosition.y, vMyCreaturePosition.z);


Modifié par _L_o_B_o_, 14 juin 2010 - 12:37 .


#3
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
if i want to activate this ability without using a heartbeat how do i do that? is there some guide for how to use the tactics system or whatever it is?

#4
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
if i want to activate this ability without using a heartbeat how do i do that? is there some guide for how to use the tactics system or whatever it is?

#5
TimelordDC

TimelordDC
  • Members
  • 923 messages
What tactic do you want to set for this? I don't think you can create a timed tactic.



Further, if you need to use it with a tactic, you need to set it up as an ability.