T_ScCrea_MuskflyRandomScale
Tamriel_Data.esm
Variables
3
Local Variables
DoOnce
RandNum
NewScale
Source
1begin T_ScCrea_MuskflyRandomScale
2; Gives muskflies a scale between 0.50 and 0.70.
3; Inspired by the scripts used by PirateLord for the Creatures mod.
4
5short DoOnce
6float RandNum
7float NewScale
8
9if ( DoOnce == 1 )
10 return
11endif
12
13set RandNum to Random 200
14set RandNum to ( RandNum - 500 )
15set NewScale to ( 1 + ( RandNum / 1000 ) )
16setScale NewScale
17
18set DoOnce to 1
19
20end