• table[1]=a and table:1=a
    3 replies, posted
What is the difference between these do they do the same thing? For example what would another way of doing this be? NPC:Spawn()
Other ways of doing the above: [lua]NPC.Spawn( NPC ) NPC["Spawn"]( NPC )[/lua] : simply means the object before the : is passed as the first argument.
Ok thanks. So self:spawn is the same as spawn(self)?
No, that would be the same as self.spawn( self ).
Sorry, you need to Log In to post a reply to this thread.