A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/object/add_weight


Lfun:	add_weight - add weight to an object

Synopsis:
	int add_weight(int weight)

Description:
	Any object that can contain other objects must define this function.
	It is called with the extra weight of the new object. This function is
	called automatically from the transfer efun.

Return value:
	If this is ok, it has to increment the local weight count and return 1.
	Otherwise it has to return 0 and the new object cannot enter it

Examples: see the obj/container.c code

See also:


This page was generated in LPC

Imprint / Impressum