View Single Post
  #2  
Old 08-17-2017, 08:28 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Pretty much. If you want to use a function that's defined in a class, you'll have to join() that class first. The function also doesn't have to be "public". Public functions can be useful in weapons, though. Let's look at an excerpt of some Atlantis weapons.

-Weather:
PHP Code:
function onCreated() {
    
weather this;  // I love doing this stuff
}

public function 
GetWeather() {
    return 
this.sWeather;

-DayNight:
PHP Code:
function UpdateSymbols() {
    
// lots of code here
    
temp.we weather.GetWeather();
    
// a lot more code using the stuff we just got from -Weather

__________________
Reply With Quote