Jump to content

POINT


Alienhead
 Share

Go to solution Solved by Josh,

Recommended Posts

Test:

local world = CreateWorld()

local box = CreateBox(world)
local box2 = CreateBox(world);

box:SetPosition(2,0,0)
box:Point(box2, 2, 1, 0)

result:

sol: no matching function call takes this number of arguments and the specified types

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

  • Solution

I correct the function definition:

"Point", sol::overload
(
  [](Entity& e, shared_ptr<Entity> target) { e.Point(target); },
  [](Entity& e, shared_ptr<Entity> target, int a) { e.Point(target, a); },
  [](Entity& e, shared_ptr<Entity> target, int a, float r) { e.Point(target, a, r); },
  [](Entity& e, shared_ptr<Entity> target, int a, float r, float z) { e.Point(target, a, r, z); },
  [](Entity& e, Vec3& target) { e.Point(target); },
  [](Entity& e, Vec3& target, int a) { e.Point(target, a); },
  [](Entity& e, Vec3& target, int a, float r) { e.Point(target, a, r); },
  [](Entity& e, Vec3& target, int a, float r, float z) { e.Point(target, a, r, z); },
  [](Entity& e, float x, float y, float z) { e.Point(x,y,z); },
  [](Entity& e, float x, float y, float z, int a) { e.Point(x, y, z, a); },
  [](Entity& e, float x, float y, float z, int a, float r) { e.Point(x, y, z, a, r); },
  [](Entity& e, float x, float y, float z, int a, float r, float roll) { e.Point(x, y, z, a, r, roll); }
),

 

  • Thanks 1

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

( LUA ) 

 

            self.entity:Point(self.piv, 2, 1, 0)

 

Did this FIX ever make it into a live release? I'm still getting an error when attempting to use this command.

image.thumb.jpeg.152c796775ba3c2c69462cf0f440a610.jpeg

  • Confused 1

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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...