Difference between revisions of "OnStoryAssaultActor - Quest"
Jump to navigation
Jump to search
imported>Henning m |
imported>Cancausecancer (→Parameters: Fixed wrong param name in description (akContainer -> akAttacker)) |
||
Line 14: | Line 14: | ||
== Parameters == | == Parameters == | ||
*akVictim: The [[ObjectReference Script|ObjectReference]] that was assaulted. | *akVictim: The [[ObjectReference Script|ObjectReference]] that was assaulted. | ||
* | *akAttacker: The [[ObjectReference Script|ObjectReference]] that attacked the victim. | ||
*akLocation: The [[Location Script|Location]] where it happened. | *akLocation: The [[Location Script|Location]] where it happened. | ||
*aiCrime: This is actually a boolean (due to limitations in the story event system, it is sent as an integer) denoting whether a crime took place or not. 0 = false. Non-zero = true. Papyrus will correctly handle this if you cast it to a bool or use it in an if statement. | *aiCrime: This is actually a boolean (due to limitations in the story event system, it is sent as an integer) denoting whether a crime took place or not. 0 = false. Non-zero = true. Papyrus will correctly handle this if you cast it to a bool or use it in an if statement. |
Latest revision as of 09:33, 18 August 2012
Member of: Quest Script
Event called when this quest is started via an assault actor story manager event.
Syntax[edit | edit source]
Event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, int aiCrime)
Parameters[edit | edit source]
- akVictim: The ObjectReference that was assaulted.
- akAttacker: The ObjectReference that attacked the victim.
- akLocation: The Location where it happened.
- aiCrime: This is actually a boolean (due to limitations in the story event system, it is sent as an integer) denoting whether a crime took place or not. 0 = false. Non-zero = true. Papyrus will correctly handle this if you cast it to a bool or use it in an if statement.
Examples[edit | edit source]
Event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, int aiCrime)
if aiCrime
Debug.Trace(akVictim + " was assaulted by " + akAttacker + " and it was considered a crime")
endIf
endEvent