blob: 4703b268635456a358c97ed73bbc9b709aeca0eb [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 void set_environment(object item, object env)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 The item is moved into its new environment env, which may be 0.
6 This efun is to be used in the move_object() hook, as it does
7 nothing else than moving the item - no calls to init() or such.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 Don't use it in your own objects!
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011HISTORY
12 Introduced in 3.2.1@1 as 'efun308()', renamed to 'set_environment()'
13 in 3.2.6.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015SEE ALSO
16 remove(A), init(A), move_object(E), transfer(E), hooks(C),
17 native(C)