thehankinator Posted July 21, 2018 Share Posted July 21, 2018 Using this page https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_Emitter_SetMaxScale It isn't clear how many arguments this Lua function accepts. Syntax section states 1 argument Quote Syntax SetMaxScale(number maxscale) But the example has 2 arguments if (window:KeyDown(Key.Up)) then maxscale = maxscale + 1 emitter:SetMaxScale(maxscale,maxscale) elseif (window:KeyDown(Key.Down) and maxscale > 0) then maxscale = maxscale -1 emitter:SetMaxScale(maxscale,maxscale) end The C++ documentation is consistent in that there is a single argument. However the header file "Emitter.h" has two functions listed virtual void SetMaxScale(const float x);//lua virtual void SetMaxScale(const float x, const float y);//lua Seems like both Lua and C++ have 1 and 2 arguments variations but only the 1 argument variant is documented and Lua example shows 2 arguments. 2 Link to comment Share on other sites More sharing options...
Josh Posted February 27, 2019 Share Posted February 27, 2019 Fixed! My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts