Difference between revisions of "User:Haama/FAR"
Jump to navigation
Jump to search
m
no edit summary
imported>Haama m |
imported>Haama m |
||
Line 8: | Line 8: | ||
==Background== | ==Background== | ||
While FASs behave like functions, their set up is quite a bit different. In most programming languages, you would simply write the function code, give it a name, and call it with the function's name. However, you're not able to simply call a script in Oblivion. Instead, FASs rely on some particular oddities of [[Activate]] to mimic function behavior. | |||
Like many functions, '''Activate''' works upon a [[Reference|reference]]. When you use the ''RunOnActivate'' flag of '''Activate''', the reference's script runs instantly. In terms of functions, '''Activate''' calls the function, the reference is the function's name and the script is the function's code. | |||
---- | |||
The script is really what defines the function, what it will do, and does the work. | |||
There are 2 important ideas to know about '''Activate''': it acts upon a reference object, and it can run that reference's script instantly. | |||
there are 3 important parts here - the Activate call, the script, and the reference stuff (or hoops/hacks) | there are 3 important parts here - the Activate call, the script, and the reference stuff (or hoops/hacks) |