A function added by MWSE.
xFirstStatic returns a reference like xFirstNPC except this one is the top of a list of static objects. This function also returns activator, door, container and clothes references.
In v0.9.4a this function is bugged: it may not return all references in exterior cells, and it returns deleted references. These bugs are fixed in the MWSE update released by Merzasphor.
SyntaxEdit
reference (long): xFirstStatic
ExampleEdit
long StaticRef ifx ( StaticRef ) setx StaticRef to xNextRef StaticRef else setx StaticRef to xFirstStatic endif if ( StaticRef == 0 ) messagebox "end" endif