Difference between revisions of "Template:NifSE Example"

Jump to navigation Jump to search
80 bytes added ,  10:18, 3 May 2010
no edit summary
imported>DragoonWraith
imported>Darkness X
Line 1: Line 1:
<noinclude>An example script used in several places covering the basics of using [[:Category:NifSE|NifSE]].
<noinclude>An example script used in several places covering the basics of using [[:Category:NifSE|NifSE]].</noinclude>


[[Category:NifSE|Example]]
== Example ==
[[Category:Function Info Templates]]
</noinclude>== Example ==
As an example of using NifSE, consider this code:
As an example of using NifSE, consider this code:
  ref playerWeapon
  ref playerWeapon
Line 26: Line 24:
  End
  End
Every time the player equips a new weapon, creates a copy of the weapon's model that can be edited using NifSE, and sets the weapon's model to the copy. If a previous weapon had been affected, sets that weapon's model back to its original file, and closes that nif in NifSE. From here, one would presumably have further blocks dedicated to determining when to apply various changes using the other NifSE functions.
Every time the player equips a new weapon, creates a copy of the weapon's model that can be edited using NifSE, and sets the weapon's model to the copy. If a previous weapon had been affected, sets that weapon's model back to its original file, and closes that nif in NifSE. From here, one would presumably have further blocks dedicated to determining when to apply various changes using the other NifSE functions.
<noinclude>
[[Category: NifSE|Example]]
[[Category: Templates|NifSE Example]]
[[Category: Function Info Templates|NifSE Example]]
</noinclude>
Anonymous user

Navigation menu