GetKey - ObjectReference: Difference between revisions

m
Convert source tags to syntaxhighlight
imported>Jlundin
 
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Key Function GetKey() native
Key Function GetKey() native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Add the key to unlock this door to the player's inventory
; Add the key to unlock this door to the player's inventory
Key JailKey = JailDoor.GetKey()
Key JailKey = JailDoor.GetKey()
Game.GetPlayer().AddItem(JailKey)
Game.GetPlayer().AddItem(JailKey)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]