SetListening(object, int)
Sets whether an object should listen.
void SetListening( object oObject, int bValue );
Parameters
oObject
The object to set the listening status.
bValue
TRUE if the object should listen, otherwise FALSE.
Description
Sets whether oObject should listen for listening patterns set on it.
Note: It has no effect on if they will hear something with GetObjectHeard().
Remarks
This actually removes/resets all previous SetListeningPattern()'s if set after the spawn. GetListening will return TRUE or FALSE for this setting.
Version
1.22
Example
// Set a thief to listen, and listen for the phrase "Foggy" for a password. // It will be number 40 in the conversation script, got by GetListenPatternNumber(). void main() { SetListening(OBJECT_SELF, TRUE); SetListenPattern(OBJECT_SELF, "Foggy", 40); }
See Also
author: Tom Cassiotis, editor: Jasperre
Send comments on this topic.