Neflicx
|
  |
| Joined: 24 Jun 2012 |
| Total Posts: 42 |
|
|
| 26 Jun 2012 06:59 PM |
| If so, how would you create one? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 07:00 PM |
What do you mean by "pointers"?
~"If I win the lottery, the first thing I'm buying is an optical mouse"~ |
|
|
| Report Abuse |
|
|
chicka123
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 25356 |
|
|
| 26 Jun 2012 07:09 PM |
Do you mean memory pointers?
I don't think thats possible in Lua. |
|
|
| Report Abuse |
|
|
Neflicx
|
  |
| Joined: 24 Jun 2012 |
| Total Posts: 42 |
|
|
| 26 Jun 2012 07:09 PM |
A pointer is a variable that 'points' at another variable. For example, you made a function called increment that looked like this :
function increment(value) value = value + 1 end
increment(THISVALUE)
When you call on the function, it will increment THISVALUE instead of having to to say:
THISVALUE = increment(THISVALUE)
So it changes the value directly. In C++, you would create a pointer like this:
int n = 1 // Initialize n as 1 p = &n // p now points to n
Now to change n using p, you have to use an asterisk.
*p++
This will increment n.' Now is this possible in ROBLOX? |
|
|
| Report Abuse |
|
|
Neflicx
|
  |
| Joined: 24 Jun 2012 |
| Total Posts: 42 |
|
|
| 26 Jun 2012 07:10 PM |
@chicka Yes! exactly. I was typing when you posted that. |
|
|
| Report Abuse |
|
|