|
| 18 Dec 2013 05:47 PM |
clickey = MouseButton1Down touchey = Touched ouch = Changed(for health)
Give me suggestions for more event nicknames! |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 18 Dec 2013 05:56 PM |
| Like what you name the function for each event. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 06:01 PM |
| Ouch for HealthChanged, not changed. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 06:07 PM |
| My events are nameless, they are... anonymous. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 06:07 PM |
| Only exception is when I need to disconnect the event. |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
| |
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 18 Dec 2013 07:03 PM |
"Only exception is when I need to disconnect the event."
getfenv(0)[903]=object.Event:connect(f); getfenv(0)[903]:disconnect();
Technically it's not a variable, it's just a number index in the environment. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2013 07:11 PM |
| Well that's an interesting way to do that. cool.:p |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 19 Dec 2013 07:09 AM |
Player join: hai Player leave: bai
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 19 Dec 2013 09:27 AM |
1) MouseButton1Down isn't click, are you planning on never using MouseButton1Down... ever?
2) HealthChanged doesn't just fire when you get hurt
3) Naming events in this way is ugly, and pointless. You can encase different event connections in variables so you can later disconnect them, but that's the only reason any event should ever be a variable. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 19 Dec 2013 09:28 AM |
| "..never using MouseButton1Down" should be "...never using MouseButton1Up" |
|
|
| Report Abuse |
|
|