What is New in MAXScript > What was New in MAXScript in Previous Versions > What was New in MAXScript in 3ds Max 5 > MAXScript Language Improvements in 3ds Max 5 >

# Rollout name as local variable in the scope of the rollout

MAXScript Language Improvements in 3ds Max 5

The name of a rollout is now defined as a local variable in the scope of the rollout, as long as the name is not a global variable. This allows for constructs such as:

FOR EXAMPLE:
    fn makeDialog =
    (
      rollout test "test"
      (
        on test open do print (getdialogpos test)
      )
      createdialog test
    )
    makeDialog()

#### See Also

- MAXScript Language Improvements in 3ds Max 5