|
On 15/07/2005, at 3:09 PM, Ive wrote:
Assuming actor is a table (if it it's then your need to use a table), try this instead of your last line above: actor.SetPrimitive = ActorSetPrimitive actor:SetPrimative(primative) Otherwise, a = { } a.ptr = actor a.Set = function(a, prim) ActorSetPrimitive(a.ptr, prim) end a:Set(primative) Basically x:y(...) expands to x.y(x, ...) Hope that helps. I may have missed the point since your actor->xyz looks more like C++ than Lua. Russ |