FANDOM


BYOND Environment This page contains an entry from the official DM Reference.

FormatEdit

Click(location,control,params)


WhenEdit

Called when the object is clicked.


ArgsEdit

location: the turf, stat panel, grid cell, etc. in which the object was clicked
control: the name of the skin control involved
params: other parameters including mouse/keyboard flags, icon offsets, etc.; see mouse control

DescriptionEdit

This proc is called by the default client.Click() procedure.

The following example allows the player to walk to a position by clicking it.

Example:

turf/Click()
  walk_to(usr,src)

See alsoEdit