Difference between revisions of "Talk:IsInInterior - ObjectReference"
Jump to navigation
Jump to search
Talk:IsInInterior - ObjectReference (edit)
Revision as of 08:53, 2 January 2016
, 08:53, 2 January 2016→IsInInteriorActual - ObjectReference: added an array version.
imported>Terra Nova2 (Added Chesko's method for getting around this function not checking for exteriors acting as interiors.) |
imported>Terra Nova2 (→IsInInteriorActual - ObjectReference: added an array version.) |
||
Line 67: | Line 67: | ||
Calling this function instead should reveal whether or not your ObjectReference is in an interior, even an exterior behaving like an interior. | Calling this function instead should reveal whether or not your ObjectReference is in an interior, even an exterior behaving like an interior. | ||
== IsInteriorAWorldSpace - ObjectReference == | |||
Inspired by the above, I made an array version. Same steps apply, just different method. | |||
---- | |||
<source lang=papyrus> | |||
WorldSpace[] property WorldSpaces auto | |||
; Fill this property with the world spaces above. | |||
Bool Function IsInteriorAWorldSpace(ObjectReference akObjectReference) | |||
Int i = 0 | |||
Int iIndex = WorldSpaces.Length | |||
if akObjectReference.IsInInterior() | |||
return true | |||
else | |||
While i < iIndex | |||
if akObjectReference.GetWorldSpace() == WorldSpaces[i] | |||
return true | |||
else | |||
i += 1 | |||
endif | |||
EndWhile | |||
endif | |||
return false | |||
EndFunction </source> |