AddResourceMap: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Fixed syntax, added argument descriptions, return info, added categories)
No edit summary
Line 24: Line 24:
==See Also==
==See Also==
{{Resource_functions}}
{{Resource_functions}}
[[Category:Incomplete]]

Revision as of 05:23, 1 January 2008

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