Difference between revisions of "SetScript"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>Speedo
(Beta tagged)
Line 1: Line 1:
{{Beta}}
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


Line 8: Line 9:
==Notes==
==Notes==
*Note that Oblivion doesn't have a script variable type so you must assign the script to a ref variable for this to work.
*Note that Oblivion doesn't have a script variable type so you must assign the script to a ref variable for this to work.
*'''This function is currently considered a BETA FUNCTION which will get official support after it gets some more testing. For now, please do not use in a shipping mod until further testing is done.'''


==See Also==
==See Also==

Revision as of 23:33, 27 April 2008


A command for Oblivion Script Extender

Syntax:

(script:refID) reference.SetScript scriptID:ref targetObjectID:ref

Sets the specified script onto the calling object and returns any previous script.

Notes

  • Note that Oblivion doesn't have a script variable type so you must assign the script to a ref variable for this to work.

See Also