RespondToShout

From NWN Lexicon

Contents

[edit] RespondToShout(object, int, object)

Sets NPC to respond to numerous alerts sent by PC or other NPCs.

void RespondToShout(
    object oShouter,
    int nShoutIndex,
    object oIntruder = OBJECT_INVALID
);

[edit] Parameters

oShouter

Object which something has occurred to.

nShoutIndex

Consistent reaction requested.

oIntruder

Placeable who disturbed oShouter. (Default: OBJECT_INVALID)


[edit] Description

Allows the listener to react in a manner consistent with the given shout but only to one combat shout per round.

The intruder object is for cases where a placeable needs to pass a GetLastOpenedBy object or a AttackMyAttacker needs to make his attacker the enemy of everyone.



[edit] Requirements

#include " nw_i0_generic "


[edit] Version

1.22

[edit] See Also

functions: 

GetLastHostileActor

events: 

OnUnlock Event



 author: Jody Fletcher, editor: Tom Cassiotis, Mistress
 

Personal tools
Categories