Thread: Flags/Events
View Single Post
  #11  
Old 06-02-2002, 12:26 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Python523

No, they would be events, events are things that are true when an action happens, flags are things that are true when something equals the flag
Actually, if you have ever tried to use them, you would know they are flags. To find out when someone has clicked the left mouse button, this does not work...

NPC Code:

if (leftmousebutton) {}



The EVENT to figure out when a mouse button is pressed is mousedown. So, to figure out when a player clicks the left mouse button...

NPC Code:

if (mousedown && leftmousebutton) {}



It fooled me the first time, too, but leftmousebutton, rightmousebutton, and middlemousebutton are flags.
Reply With Quote