replace_pgm
lfunLFUN
string replace_pgm ()
DESCRIPTION
Try to replace this objects program by the program of a parent.
Result: the object_name() of the parent on success, else 0.
This functions MUST NOT be called for blueprints, from which
multiple clones are to be created, inheritance parents, or clones
themselves!
Objects with more lfuns than just 'create' won't get their programs
replaced.
EXAMPLE
void create() {
...
replace_pgm();
}
IMPLEMENTED
/std/base
SEE ALSO
room(S)