LPC Library Functions: find_object

NAME

find_object() - find an object by file name

SYNOPSIS

object find_object( string str, void | int flag );

DESCRIPTION

Find the object with the file name <str>. If the object is a cloned object, then it can be found using the file name which would by returned if file_name() was called with it as the argument. For example, find_object("/monsters/orc#321") will return the object which was cloned from /monsters/orc and given the object number 321.

If the optional argument 'flag' is 1, find_object() will attempt to load the object if it is not already loaded. This use of find_object() is a synonym for load_object().

SEE ALSO

file_name(), stat(), load_object()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS