Jump to content

Recommended Posts

Posted

Depends on the mod and the way they implement their tools/stage they do it at. The best case scenario is them exposing the material in their API. If that is not the case you can try to get the material from the ToolMaterial enum if they added their material there via EnumHelper or custom reflection. If they did so you can either get that material from ToolMaterial enum by it's name (Enum::valueOf) or by iterating through all values (Enum::values) untill you get the desired material. You must ensure that you are doing it after they've added their material to the enum though or you will not find it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.