TorqueScript Reference

- Main Page
- Related Pages
- Modules
- Classes

Functions
Serialization
Function Categories

## Functions
Integer | loadObject (filename)
Boolean | saveObject (object, filename)

## Detailed Description

## Function Documentation

Integer loadObject | ( | filename |  | ) |

Loads an object from the specified filename

Parameters

  filename | The name of the file to load the object from

Returns
  Returns the ID of the object on success, or 0 on failure.

See also
  FileObject::writeObject, SimObject::save

Boolean saveObject | ( | object | ,
|  | filename |
| ) |  |

Saves the given object to the given filename

Parameters

  object | The SimObject to save
  filename | The name of the file in which to save the object

Returns
  Returns true on success and flase on failure

See also
  FileObject::writeObject, SimObject::save