fluffos/docs/efun/objects/load_object.md

28 lines
548 B
Markdown
Raw Permalink Normal View History

2018-12-30 16:43:04 -08:00
---
title: objects / load_object
---
2023-11-25 09:50:24 -08:00
# load_object
2018-12-30 16:43:04 -08:00
### NAME
2018-12-30 16:59:01 -08:00
load_object() - find or load an object by file name
2018-12-30 16:43:04 -08:00
### SYNOPSIS
2018-12-30 16:59:01 -08:00
object load_object( string str );
2018-12-30 16:43:04 -08:00
### DESCRIPTION
2018-12-30 16:59:01 -08:00
Find the object with the file name 'str'. If the file exists and the
object hasn't been loaded yet, it is loaded and returned (if possible).
### RETURN VALUES
load_object() returns the loaded object if it can be loaded (or already
loaded), otherwise the value 0 will be returned.
2018-12-30 16:43:04 -08:00
### SEE ALSO
file_name(3), find_object(3), stat(3)