Thread: Joining Classes
View Single Post
  #1  
Old 12-16-2005, 10:26 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Joining Classes

When you use the join() function to join a class, what is the precedence of event handlers? Can event handlers share the same events with the NPC?

ex.
let's say this is class "class":
function onCreated() {
setshape(1,32,32);
}

and call this an npc:
join("class");
function onCreated() {
setshape(1,64,64);
}

would the class event handler be called and then the npc event handler? Would they both have the capacity to be called? I'm just wondering because I just decided to propose an action handling structure for Classic, but it would probably encounter this a lot.
Reply With Quote