Try this:
class myEditorTool extends BrushBuilder;
var float somevariableshere;
event bool Build()
{
local WorldInfo WI;
local pawn P;
WI = class'Engine'.static.GetCurrentWorldInfo();
foreach Wi.AllActors(class'pawn', P)
{
`log("pawn"@P);
}
}
defaultproperties
{
BitmapFilename="DownArrowBlue"
ToolTip="Your text for the buttom"
}