View Single Post
  #3  
Old 04-04-2007, 08:51 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Skyld View Post
... had might as well be:
PHP Code:
this.cloner_on = !this.cloner_on;
player.chat "Outfit Cloner: " @ (this.cloner_on "On" "Off"); 
I'd actually appreciate it if you'd explain that to me since I never understood how that worked.

Quote:
Originally Posted by Skyld View Post
Also.
PHP Code:
       for (pplayers)
        {
         for (
nnpcs)
          { 
Do you need to scan every NPC for every player? Can't you just scan them once?
It scans all of the players in the level and all of the npcs in the level if you have the npc on and you double click. It does this to be able to compare the person that triggered its mouse position to see if it falls within the range to clone the object.

I don't seem to be understanding where you're coming from, mind elaborating a bit?

Quote:
Originally Posted by Skyld View Post
Finally, can't you prefix your temp vars with temp.?
I guess

But does it make a difference? From my experience this. temp vars can be used throughout the NPC whereas temp vars can't unless you send them over through the parameters of a function.
Reply With Quote