Difference between revisions of "FnGetExternalForm"

Jump to navigation Jump to search
196 bytes removed ,  06:34, 5 April 2015
m
Prettied
imported>Odessa
(Created page. Source me ;).)
 
imported>Odessa
m (Prettied)
 
Line 1: Line 1:
Sometimes one may wish to reference a form from an external mod without making it a master. This can be achieved using [[BuildRef]], but there are number of potential pitfalls detailed in it's article that must be avoided. The following UDF allows for safe and convenient BuildRefs:
{{Function
{{Function
  |origin = UDF
  |origin = UDF
  |summary = Returns a valid form of the type specified from an external mod, if one exists. Returns 0 if the mod [[IsModLoaded|is not loaded]], the [[IsFormValid|form doesn't exist]], or the form is of an [[Form Type IDs|unexpected type]].
  |summary = Returns a valid form of the type specified from an external mod, if one exists. Returns 0 if the mod [[IsModLoaded|is not loaded]], the [[IsFormValid|form doesn't exist]], or the form is of an [[Form Type IDs|unexpected type]].
This UDF avoids the potential pitfalls of using [[BuildRef]], detailed in it's article.
  |name = call fnGetExternalForm
  |name = call fnGetExternalForm
  |returnType = ValidForm-or-0
  |returnType = ValidForm-or-0
Line 18: Line 18:
   }}
   }}
}}
}}
==Example==
==Example==
<pre>
<pre>
Anonymous user

Navigation menu