Difference between revisions of "EVENT TYPE PERCEPTION APPEAR"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (sort key) |
m (Fixing parameters) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Event | |
− | + | |sourcefile = script.ldf | |
− | + | |when = A creature enters the perception area of creature receiving the event | |
− | + | |from = Engine | |
− | + | |to = Creature | |
− | + | |targetdesc = Creature that entered the perception area | |
− | + | |object0name = oAppear | |
− | + | |object0desc = Creature that entered the perception area | |
− | + | |int0name = nHostile | |
− | + | |int0desc = If hostile or not (TRUE/FALSE) | |
− | + | |int1name = bStealthed | |
− | + | |int1desc = If stealthed or not (TRUE/FALSE) | |
+ | |int2name = nHostilityChanged | ||
+ | |int2desc = If the creature was already perceived but just changed hostility (TRUE/FALSE) | ||
+ | |int3name = bSurvivalSkillDetected | ||
+ | |sortkey = PERCEPTION_APPEAR | ||
+ | }} |
Latest revision as of 15:57, 21 August 2011
- Source:
- script.ldf
- Sent when:
- A creature enters the perception area of creature receiving the event
- Sent from:
- Engine
- Sent to:
- Creature
- Parameters:
-
- Target: Creature that entered the perception area
- Integer 0: If hostile or not (TRUE/FALSE)
- Integer 1: If stealthed or not (TRUE/FALSE)
- Integer 2: If the creature was already perceived but just changed hostility (TRUE/FALSE)
- Integer 3: [Undocumented]
- Object 0: Creature that entered the perception area
Usage
case EVENT_TYPE_PERCEPTION_APPEAR:
{
int nHostile = GetEventInteger(ev, 0); // If hostile or not (TRUE/FALSE)
int bStealthed = GetEventInteger(ev, 1); // If stealthed or not (TRUE/FALSE)
int nHostilityChanged = GetEventInteger(ev, 2); // If the creature was already perceived but just changed hostility (TRUE/FALSE)
int bSurvivalSkillDetected = GetEventInteger(ev, 3); //
object oAppear = GetEventObject(ev, 0); // Creature that entered the perception area
// insert event-handling code here
break;
}
{
int nHostile = GetEventInteger(ev, 0); // If hostile or not (TRUE/FALSE)
int bStealthed = GetEventInteger(ev, 1); // If stealthed or not (TRUE/FALSE)
int nHostilityChanged = GetEventInteger(ev, 2); // If the creature was already perceived but just changed hostility (TRUE/FALSE)
int bSurvivalSkillDetected = GetEventInteger(ev, 3); //
object oAppear = GetEventObject(ev, 0); // Creature that entered the perception area
// insert event-handling code here
break;
}