Alienhead Posted April 7, 2024 Posted April 7, 2024 ( LUA ) When applying an axis, rate and roll to the POINT command - the app freezes. 1 Quote Alienhead Components and Software
Josh Posted April 7, 2024 Posted April 7, 2024 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 Quote Let's build cool stuff and have fun.
Solution Josh Posted April 7, 2024 Solution Posted April 7, 2024 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); } ), 1 Quote Let's build cool stuff and have fun.
Alienhead Posted April 15, 2024 Author Posted April 15, 2024 ( 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. 1 Quote Alienhead Components and Software
Josh Posted April 15, 2024 Posted April 15, 2024 I just ran this in the console with no errors: Quote Let's build cool stuff and have fun.
Alienhead Posted April 15, 2024 Author Posted April 15, 2024 Yah I had crossed it out earlier this morning, I forgot I had formated yesterday and restored and earlier copy by accident.. Quote Alienhead Components and Software
Recommended Posts
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.