View Single Post
  #6  
Old 01-08-2009, 11:02 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Skyld View Post
It's not so much "allowing objects as input", it's just a consequence of variant typing. When you pass an object to something where there should be a string, it is just taking the name of the object and passing that instead. In this case, the account name is the name of the object.
That's the same as doing findplayer(findplayer("Chompy").account); :o?

But yeah, I guess it's kinda neat to have, for example when comparing: if (player.level == "osl.nw")
__________________
Reply With Quote