In case you want to see a working example, you will find a demo project within the folder where you installed WME Development Kit. Possibly C:\Program Files (x86)\WME DevKit\projects\wme_demo\wme_demo.wpr
The snippet of code you see above, I got it from said demo - more precisely, from the file scene_init.script, located in the project tree pane under scenes > room > scr.