AddResourceMap

From Multi Theft Auto: Wiki
Revision as of 10:34, 20 October 2007 by Jbeta (talk | contribs) (Fixed syntax, added argument descriptions, return info, added categories)
Jump to navigation Jump to search

This function adds a new empty mapfile to an existing resource.

Syntax

xmlnode addResourceMap ( resource theResource, string filename, [ int dimension = 0 ] )

Required Arguments

  • theResource: the resource to which the map file will be added.
  • filename: the name of the map file to be added.

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • dimension: the dimension in which the map's objects will be placed.

Returns

Returns the new map's root xmlnode if the map was added successfully, false otherwise.

Example

See Also