Lua GetSelection

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the selected unit by the player.

Example

 
function ExampleFunction(pPlayer)
	if(pPlayer:GetSelection()~=nil and pPlayer:GetSelection():IsPlayer()==false) then
		pPlayer:GetSelection():SendChatMessage(12, 0, "Hey!")
	end
end
Personal tools