Well just make a central function that they all use and call the right function based on the object passed.
Usage:
findweapon("-GUI").triggerGUI(Jerry);
PHP Code:
public function triggerGUI(obj) {
if (obj == Jerry) {
DoStuff();
} else {
DoOtherStuff();
}
}