Difference between revisions of "EVENT TYPE AOE HEARTBEAT"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Adding category)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|when=
+
|sourcemodule =
|from=
+
|sortkey      = AOE_HEARTBEAT
|to=
+
|when         =  
|creatorname=oCreatorAOE
+
|from         =  
|creatordesc={{undocumented}}
+
|to           =
|object0name=oCreatorAOE2
+
|tocategory1  = AOE
|object0desc={{undocumented}}
+
|tocategory2  =  
|int0name=iAbility
+
|creatorname = oCreator
|int0desc={{undocumented}}
+
|creatordesc = {{undocumented}}
 +
|object0name = oCreator2
 +
|object0desc = {{undocumented}}
 +
|int0name     = nAbility
 +
|int0desc     = {{undocumented}}
 
}}
 
}}
  
From careaofeffectobject.cpp:
+
== Remarks ==
  
:pHeartBeatEvent->SetCreator(m_oidCreator);
+
Relevant Eclipse engine code:
:pHeartBeatEvent->SetObjectId(0, GetId());
+
:pHeartBeatEvent->SetInteger(0, GetAbilityId());
+
  
[[Category:Event types|AOE_HEARTBEAT]]
+
<cpp>
 +
    pHeartBeatEvent->SetCreator(m_oidCreator);
 +
    pHeartBeatEvent->SetObjectId(0, GetId());
 +
    pHeartBeatEvent->SetInteger(0, GetAbilityId());
 +
</cpp>

Latest revision as of 20:54, 3 April 2015

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:
Sent from:
Sent to:
Parameters:

Usage

case EVENT_TYPE_AOE_HEARTBEAT:
{
object oCreator = GetEventCreator(ev); // [Undocumented]
int nAbility = GetEventInteger(ev, 0); // [Undocumented]
object oCreator2 = GetEventObject(ev, 0); // [Undocumented]

// insert event-handling code here

break;
}

Remarks

Relevant Eclipse engine code:

<cpp>

   pHeartBeatEvent->SetCreator(m_oidCreator);
   pHeartBeatEvent->SetObjectId(0, GetId());
   pHeartBeatEvent->SetInteger(0, GetAbilityId());

</cpp>