Nagrath99
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 1537 |
|
|
| 05 Dec 2014 09:56 PM |
Is there any possible way to change an Enum (Enum.Material.Smooth) into an Int? I know that it has what # it is listed but there seems to be no apparent way to get that # from the Enum without creating a table in my script.
Anybody know how? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Dec 2014 09:57 PM |
| Why would you want the number, exactly? I think it would be that Enum.Number |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Dec 2014 09:58 PM |
| According to wiki it's .Value, not .Number |
|
|
| Report Abuse |
|
|
Nagrath99
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 1537 |
|
|
| 05 Dec 2014 09:58 PM |
| Number is not a valid EnumItem |
|
|
| Report Abuse |
|
|
Nagrath99
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 1537 |
|
|
| 05 Dec 2014 09:58 PM |
Okay, Value works. Thank you. |
|
|
| Report Abuse |
|
|