Difference between revisions of "EVENT TYPE ABILITY PROJECTILE LAUNCHED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} ABILITY_PROJECTILE_LAUNCHED') |
BryanDerksen (Talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{{event | {{event | ||
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
− | |when= | + | |when= Fires the moment the projectile for an ability launches. Used to set cooldown for projectile based abilities. |
|from= | |from= | ||
− | |to= | + | |to=creature |
+ | |tocategory1=creature | ||
+ | |sortkey=ABILITY_PROJECTILE_LAUNCHED | ||
+ | |creatorname= | ||
+ | |creatordesc=Creature firing the projectile | ||
+ | |object0name=oCreator | ||
+ | |object0desc= | ||
+ | |vector0name=vImpactLocation | ||
+ | |vector0desc= | ||
+ | |int0name=nAbilityID | ||
+ | |int0desc= | ||
}} | }} | ||
− | [[Category: | + | Handled by [[ability_core]]. Projectile abilities set their cooldown here. All other abilities set it on cast impact. |
+ | |||
+ | ccreature.cpp has "pEvent->SetVector(0, pEventData->m_vImpactLocation);" for this event but there isn't a GetEventVector function, is this a location instead? | ||
+ | |||
+ | [[Category:Projectiles]] |
Latest revision as of 19:03, 16 February 2010
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:
-
- Creator: Creature firing the projectile
- Integer 0: [Undocumented]
- Object 0: [Undocumented]
Usage
case EVENT_TYPE_ABILITY_PROJECTILE_LAUNCHED:
{
int nAbilityID = GetEventInteger(ev, 0); //
object oCreator = GetEventObject(ev, 0); //
// insert event-handling code here
break;
}
{
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.
ccreature.cpp has "pEvent->SetVector(0, pEventData->m_vImpactLocation);" for this event but there isn't a GetEventVector function, is this a location instead?