blob: 3b6e7088f8188d82b2016a861b40a665950a0d78 [file] [log] [blame]
Zesstrad59c3892019-11-28 20:53:39 +01001SYNOPSIS
MG Mud User88f12472016-06-24 23:31:02 +02002 object find_object(string str)
3
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Find an object with the object_name str. If the object isn't loaded,
6 it will not be found.
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008EXAMPLES
MG Mud User88f12472016-06-24 23:31:02 +02009 object obj;
10 obj = find_object("std/thing");
11 obj = find_object("std/thing.c");
12 obj = find_object("/std/thing");
13 obj = find_object("/std/thing.c");
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015 All four statements are equal.
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstrad59c3892019-11-28 20:53:39 +010017 obj = find_object("/std/thing#42");
MG Mud User88f12472016-06-24 23:31:02 +020018
Zesstra715ec202025-07-09 22:18:31 +020019 returns the clone whose object_name is "std/thing#42", if
20 it exists.
Zesstrad59c3892019-11-28 20:53:39 +010021
Zesstra715ec202025-07-09 22:18:31 +020022SEE ALSO
Zesstrad59c3892019-11-28 20:53:39 +010023 object_name(E), to_object(E)