1,482
edits
imported>Jlundin |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Key Function GetKey() native | Key Function GetKey() native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
< | <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) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||