blob: 7e13d408cc32ceb21a29ccb3b1b8b79a3a668aed [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
2 #include <configuration.h>
3
4 void configure_object(object ob, int what, mixed data)
5
6DESCRIPTION
7 Sets the option <what> to the value <data> on the object <ob>
Zesstra715ec202025-07-09 22:18:31 +02008 or the default for all objects if <ob> is 0.
MG Mud User88f12472016-06-24 23:31:02 +02009
10 If the first argument <ob> is not this_object(), the privilege
11 violation ("configure_object", this_object(), ob, what, data)
12 occurs.
13
14 As <what>, the following arguments are accepted:
15
16 <what> == OC_COMMANDS_ENABLED
17 Sets whether <ob> can use commands normally accessible to
18 users (1) or not (0). This also marks the object as "living".
19
20 <what> == OC_HEART_BEAT
21 Enables (1) or disables (0) the heart beat for <ob>. The
22 driver will apply the lfun heart_beat() to the <ob> every
23 __HEARTBEAT_INTERVAL__ seconds, if it is enabled.
24 A shadow over the heart_beat() lfun will be ignored.
25
26 If the heart beat is not needed for the moment, then do disable
27 it. This will reduce system overhead.
28
29 Note that heart_beat()s are called only if there are enabled
30 via configuer_driver(DC_ENABLE_HEART_BEATS), which is the
31 default.
32
Zesstraa812fe62017-06-18 15:31:06 +020033 <what> == OC_EUID
34 Set effective uid to <data>. <data> must be a string or 0.
35 This call will always trigger a privilege violation check,
36 even if <ob> is this_object().
37
38 If strict euid usage is enforced, objects with euid 0 cannot
39 load or clone other objects or do any file operations.
40
MG Mud User88f12472016-06-24 23:31:02 +020041
42 The current values for these options can be queried using
43 object_info().
44
45HISTORY
46 Introduced in LDMud 3.5.0.
47
48SEE ALSO
Zesstra715ec202025-07-09 22:18:31 +020049 object_info(E), configure_interactive(E), configure_lwobject(E),
50 configure_driver(E)