Quote:
Originally posted by Termina_Owner
As in PHP:
NPC Code:
if (playerenters){
dog = new dog(10);
healthydog = new dog(100);
healthydog-> bark();
dog-> whimper();
}
It would be awesome if we could... Anyhow! When is the new engine planned to be released? You got me anxious (Well, more then I actually am).
|
You can call functions of other npcs if they are declared public (public function ...).
The class system is the same like the old Graal class system, except that you can join and leave at any time you want. You can do things like
myvar = "test";
myvar.join("dogs");
myvar.whimper();
which is then using the dogs class