Talk:ObjectReference Script

From the CreationKit Wiki
Revision as of 10:19, 22 May 2021 by imported>Rasikko (→‎The XYZ read-only properties)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RemoveItem

RemoveItem is missing a parameter. The last parameter is an ObjectReference to a container that the item may be removed to. I tried to add this parameter but the edit was blocked by the spamfilter for some reason. Lofgren (talk) 2013-08-24T01:13:58 (EDT)

SKSE beta?

Is it standard practice to add functions from the newest SKSE beta to the list? If so, someone may want to add these.

Form[] GetContainerForms()
Returns an array of all base forms inside the container reference. Introduced in SKSE 1.7.3.
GetAllForms(FormList toFill)
Fills the specified FormList with the base forms inside the container reference. Introduced in SKSE 1.7.3.
Potion GetPoison()
Returns the poison applied to the weapon reference. Introduced in SKSE 1.7.3.
ReferenceAlias[] GetReferenceAliases()
Returns an array of all aliases that hold this reference. Introduced in SKSE 1.7.3.

DavidJCobb (talk) 2015-08-02T14:18:35 (EDT)

The XYZ read-only properties

Stack Profiling tests shows that these are just shorthanded versions of their respective papyrus functions. GetPositionXYZ is still called under the hood and take the same amount of time to return as their read-only counterparts. If you wanna avoid typing 'GetPosition', just use the read-only versions instead. --Rasikko (talk) 2021-05-22T05:02:28 (EDT)