MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | #include <configuration.h> |
| 3 | |
| 4 | void configure_object(object ob, int what, mixed data) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Sets the option <what> to the value <data> on the object <ob> |
| 8 | or the default for all interactives if <ob> is 0. |
| 9 | |
| 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 | |
| 33 | |
| 34 | The current values for these options can be queried using |
| 35 | object_info(). |
| 36 | |
| 37 | HISTORY |
| 38 | Introduced in LDMud 3.5.0. |
| 39 | |
| 40 | SEE ALSO |
| 41 | object_info(E), configure_interactive(E), configure_driver(E) |