Difference between revisions of "AddKeyIfNeeded - ObjectReference"

Jump to navigation Jump to search
m
Correct Parameter Name (ObjectWithNeededKey --> aLockedRef)
imported>Plplecuyer
 
m (Correct Parameter Name (ObjectWithNeededKey --> aLockedRef))
Tag: Reverted
Line 3: Line 3:
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]


Checks this object's inventory for a key used by the parameter ObjectWithNeededKey. If this object does not have the key, it creates it and adds it to its inventory.
Checks this object's inventory for a key used by the parameter aLockedRef. If this object does not have the key, it creates it and adds it to its inventory.


== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function AddKeyIfNeeded(ObjectReference ObjectWithNeededKey)
Function AddKeyIfNeeded(ObjectReference aLockedRef)
</source>
</source>


== Parameters ==
== Parameters ==
*ObjectWithNeededKey: The reference that is locked with a key. It will create a key to this object and add it to the calling object if the calling object doesn't already have one.
*aLockedRef: The reference that is locked with a key. It will create a key to this object and add it to the calling object if the calling object doesn't already have one.


== Return Value ==
== Return Value ==
171

edits

Navigation menu