In one class named "block" I have this script:
PHP Code:
public function OrbSwitch() {
// actions
}
and in another class named "switch" I have this script:
PHP Code:
function onActionAHPHit() { // custom sword triggeraction
// actions
block.OrbSwitch();
}
Everything under
onActionAHPHit() works but the public function isn't being triggered. Am I using the function wrong?