IsInInterior - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Terra Nova2
m (Made note a little more clearer.)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function IsInInterior()
bool Function IsInInterior()
   Cell parentCell = GetParentCell()
   Cell parentCell = GetParentCell()
   Return parentCell && parentCell.IsInterior()
   Return parentCell && parentCell.IsInterior()
EndFunction
EndFunction
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 20: Line 20:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Is the box in an interior?
; Is the box in an interior?
if Box.IsInInterior()
if Box.IsInInterior()
   Debug.Trace("Box is inside!")
   Debug.Trace("Box is inside!")
endIf
endIf
</source>
</syntaxhighlight>


== Notes ==  
== Notes ==  

Navigation menu