Difference between revisions of "Cast Reference"

233 bytes added ,  11:11, 21 August 2016
m
→‎Examples: just another example.
imported>Plplecuyer
 
imported>Goggle
m (→‎Examples: just another example.)
Line 137: Line 137:
; x gets the child object if it is one, otherwise None
; x gets the child object if it is one, otherwise None
x = ParentVariable as ChildObject
x = ParentVariable as ChildObject
</source>
<br>
<source lang="papyrus">
; If the alias is an actual actor, you can cast the alias to actor to with functions like [[StartCombat()]]. (Functions that expect actors to be called on them.)
MyAlias.GetReference() as Actor
</source>
</source>


Anonymous user