Difference between revisions of "OBSE Wishes Fulfilled"

383 bytes added ,  17:16, 25 March 2008
Add RemoveFromDetectionList (0015)
imported>Scruggs
(GetCreatureSound)
imported>Scruggs
(Add RemoveFromDetectionList (0015))
Line 102: Line 102:
*'''IsValidReference''' - returns true if the supplied reference is valid. This would return false, for instance, if a reference to an item is put into an inventory, or if the reference is non-persistent and not in the loaded cell. Avoids issues with calling functions on such references crashing the game. ''Use IsFormValid''
*'''IsValidReference''' - returns true if the supplied reference is valid. This would return false, for instance, if a reference to an item is put into an inventory, or if the reference is non-persistent and not in the loaded cell. Avoids issues with calling functions on such references crashing the game. ''Use IsFormValid''
*'''PlayCreatureSound [soundGroup]''' - an alternative to the above. Plays the sound associated with the specified group for the calling object (creature). Creatures have sounds like "Idle", "Hit", "Attack", etc. ''Pass the return value of GetCreatureSound to PlaySound or PlaySound3D''
*'''PlayCreatureSound [soundGroup]''' - an alternative to the above. Plays the sound associated with the specified group for the calling object (creature). Creatures have sounds like "Idle", "Hit", "Attack", etc. ''Pass the return value of GetCreatureSound to PlaySound or PlaySound3D''
*'''RemoveFromDetectionList''' - Oblivion stores a list of actors who currently detect the player. However, unconscious/paralyzed/knocked-down actors are not properly removed from the list if they detect the player at the moment their AI is turned off, and will continue to detect him regardless of how well-hidden he is. This function forcibly removes them from the detection list.
Anonymous user