setAttackByName

static boolean setAttackByName(String actionName)

Attempts to select the specified attack action if not already selected.

Return

true if successful, false otherwise

Parameters

actionName

the action to select. Will select the first action which matches this parameter