tes3crimeEvent⚓︎
A temporary data structure used in the processing of crimes the player has committed.
Properties⚓︎
bountyKey
⚓︎
Contains the stringified version of the type used for bounty-related functions.
Returns:
result
(string)
criminal
⚓︎
The player mobile will be used as a default value, meaning that there is no direct victim. Other values may be possible but will generally not be reacted to by AI and discarded.
For crimes of type tes3.crimeType.witnessReaction
the criminal will always be the witness, unless it is reacting to a crime of type tes3.crimeType.killing
, in which case the criminal mobile will be used.
Returns:
result
(tes3mobileActor)
position
⚓︎
The position of the crime. This will be the position of the victim of an attack/killing or the position of the criminal otherwise.
Returns:
result
(tes3vector3)
stolenFrom
⚓︎
Who was stolen from with this crime. Valid for crimes of type tes3.crimeType.theft
or tes3.crimeType.pickpocket
.
Returns:
result
(tes3object)
stolenValue
⚓︎
The value associated with the crime. Valid for crimes of type tes3.crimeType.theft
or tes3.crimeType.pickpocket
Returns:
result
(number)
timestamp
⚓︎
The time at which the crime has been committed. This is not the time at which the crime has been witnessed.
Returns:
result
(number)
type
⚓︎
The base crime type. Maps to tes3.crimeType
.
Returns:
result
(number)
victim
⚓︎
The player mobile will be used as a default value, meaning that there is no victim.
If the default value is set, the proper victim can be retrieved from the stolenFrom field for crimes of type tes3.crimeType.theft
or tes3.crimeType.pickpocket
.
For crimes of type tes3.crimeType.witnessReaction
the victim will always be the player mobile.
Returns:
result
(tes3mobileActor)
victimFaction
⚓︎
The faction of the crime victim. This field will always be filled with the correct information, even if player has been set as a default value for the victim.
Returns:
result
(tes3faction)
witnesses
⚓︎
A list of AIPlanners that were able to detect the criminal.
Returns:
result
(tes3aiPlanner)