Jump to content

Model:GetSurface() not exposed to Lua?


Rastar
 Share

Recommended Posts

Ah,

 

it seems GetSurface() is not available for an instanced model. So

 

local model = Model:Create()
model:AddSurface()
local surface = model:GetSurface(0)

 

run fine, but the following

 

local model2 = model:Instance()
local surf2 = model2:GetSurface(0)

 

gives the described error.

Link to comment
Share on other sites

  • 2 months later...

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...