A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/object/init
Lfun: init - give actions to other livings
Synopsis:
void init()
Description:
This function is called everytime a living objects can "see" the
object, eg. if a player enters the same room. It is good for the set
up of add_actions in it.
Return value: none
Examples:
Setting up a read action in an item:
init() {
add_action("read", "read");
}
read(str) { /* insert the read function here */ }
See also:
This page was generated in LPC
Imprint / Impressum