Difference between revisions of "EVENT TYPE ABILITY PROJECTILE LAUNCHED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(parameters from ccreature.cpp)
Line 4: Line 4:
 
|when= Fires the moment the projectile for an ability launches. Used to set cooldown for projectile based abilities.
 
|when= Fires the moment the projectile for an ability launches. Used to set cooldown for projectile based abilities.
 
|from=
 
|from=
|to=
+
|to=creature
 +
|creatorname=oCreature
 +
|creatordesc=
 +
|object0name=oCreator
 +
|object0desc=
 +
|vector0name=vImpactLocation
 +
|vector0desc=
 +
|int0name=nAbilityID
 +
|int0desc=
 
}}
 
}}
  

Revision as of 17:46, 20 August 2009

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
script.ldf
Sent when:
Fires the moment the projectile for an ability launches. Used to set cooldown for projectile based abilities.
Sent from:
Sent to:
creature
Parameters:

Usage

case EVENT_TYPE_ABILITY_PROJECTILE_LAUNCHED:
{
object oCreature = GetEventCreator(ev); //
int nAbilityID = GetEventInteger(ev, 0); //
object oCreator = GetEventObject(ev, 0); //

// insert event-handling code here

break;
}

Handled by ability_core. Projectile abilities set their cooldown here. All other abilities set it on cast impact.