add: args[0]=event.x; args[1]=event.y; 
context: function worldClickHandler(event){	args=new Array(null, null);	console.write("worldClickHandler: button "+event.button+", clicks "+event.clicks);	if (isSelecting())	{		getGlobal().selectionWorldClickHandler(event);		return;	}	// Right button single- or double-clicks	if (event.button == SDL_BUTTON_RIGHT && event.clicks <= 2)	{		if (event.clicks == 1)			cmd = event.command;		else if (event.clicks == 2)		{			console.write("Issuing secondary command");			cmd = event.secondaryCommand;		}	}	else		return;	switch (cmd)	{		// location target commands		case NMT_Goto:		case NMT_Patrol:			if (event.queued)			{				cmd = NMT_AddWaypoint;			}		break;		case NMT_AddWaypoint:			args[0]=event.x;			args[1]=event.y;		break;		// entity target commands		case NMT_AttackMelee:		case NMT_Gather:			args[0]=event.entity;			args[1]=null;		break;		default:			console.write("worldClickHandler: Unknown command: "+cmd);			return;		break;	}	issueCommand (selection, cmd, args[0], args[1]);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/6a0900df2fb6904677c3035d913a3b8390405dad/functions_sim_entity.js/buggy/binaries/data/mods/official/gui/test/functions_sim_entity.js