|
Question : how to use and give a "public function"?
|
Public functions are functions that other scripts can access via other scripts, level NPCs, classes and w/e.
PHP Code:
public function cheeseIsCool() {
echo("Cheese is cool, pepper is not!");
}
PHP Code:
(@"-Weapon/Name").cheeseIsCool();