Wikia

Runes of Magic Wiki

API:FocusUnit

Talk0
1,261pages on
this wiki

Places / removes a given unit on / from a specified position in the focus frame.

FocusUnit( pos , unit );

Parameters Edit

Arguments Edit

pos
number - The slot in which the unit will be stored. Possible values: 1 to 12.
unit
string - A UnitID (e.g. "target", "party1", "raid1", etc..). When given an empty string, the slot will be cleared, removing the unit from the focus.

Returns Edit

nil
void - A method call without return value.

Example Edit

Places the current target in the first focus slot:

FocusUnit(1,"target")

Removes any unit placed within the 4th focus slot.

FocusUnit(4,"")

Notes Edit

Empty focus frame slot value may be used (e.g., by TargetUnit) as "focus1", "focus2", etc.

Related Functions Edit

Around Wikia's network

Random Wiki