mob/verb/Fireball()
src << "Select a target"
client.mouse_pointer_icon = 'select.dmi'
var/mob/target = GetClick()
client.mouse_pointer_icon = null
if(ismob(target))
src.fireball(M)
ID:124396
Jul 6 2009, 10:00 pm
|
|
GetClick() is a mob proc that greatly simplifies the process of getting input through clicks. It may be called at any time and the proc will wait (similar to input()) until the player clicks a new object. As a practical example of usage:
|