Jump to content
whiterabbit

No Lerp function?

Recommended Posts

I just tried using Math:Lerp for the first time and get the error:

attempt to call method 'Lerp' (a nil value)

This is how I am calling it, I have also tried Math.Lerp and just Lerp, they don't work either.

local R = Math:Lerp(self.DayAmbient.x,self.NightAmbient.x,Intense)

 

As as a test I did I

for k,v in pairs(Math) do print(k,v) end

and I couldn't see Lerp anywhere in the output wacko.png

 

I understand how Lerp works and can write the function myself to get around this, I just didn't know if the documentation is wrong or I am having some kind of bug or what.

Share this post


Link to post

It's not exposed to lua (looking in the headers), so It won't work in lua, this is probably a bug yes

Share this post


Link to post

By performing a dump of all the globals in LE's lua implementation, I can see that Math:Lerp is indeed missing.

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...