Format

Click(location,control,params)

When

Called when the object is clicked.

Args

  • 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 handling

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

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

turf/Click()
  walk_to(usr,src)

See also