RespondToShout

From NWN Lexicon
Jump to navigationJump to search

RespondToShout(object, int, object)

Note: This function page documents something only available in the nw_i0_generic include file. The function may not be accurately documented here but you can read the nwscript code for the function in the game files.

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

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

Parameters

oShouter

Object which something has occurred to.

nShoutIndex

Consistent reaction requested.

oIntruder

Placeable who disturbed oShouter. (Default: OBJECT_INVALID)


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.



Requirements

#include " nw_i0_generic "


Version

1.22

See Also

functions: 

GetLastHostileActor

events: 

OnUnlock Event



 author: Jody Fletcher, editor: Tom Cassiotis, Mistress