Difference between revisions of "TryToClear - ReferenceAlias"
Jump to navigation
Jump to search
→Syntax
imported>Jlundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ReferenceAlias Script Clears this alias and returns whether anything was in it to begin with. == Syntax == <sou...") |
imported>Thingy Person (→Syntax) |
||
Line 8: | Line 8: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
bool Function TryToClear() | bool Function TryToClear() | ||
if (GetReference()) | |||
Clear() | |||
return True | |||
endif | |||
return False | |||
EndFunction | |||
</source> | </source> | ||