• how to use table?
    3 replies, posted
local tbl = {["ValveBiped.Bip01_Head1"] = { x = 0, y = 0, z = 100, }} PrintTable(tbl) result ValveBiped.Bip01_Head1: x = 0 y = 0 z = 100 how to insert "ValveBiped.Bip01_Neck" with {x = 0,y = 0,z = -100} into the tbl? but not this way local tbl = {["ValveBiped.Bip01_Head1"] = { x = 0, y = 0, z = 100, }, ["ValveBiped.Bip01_Neck"] = { x = 0, y = 0, z = -100 }} this way isn't what i want i already declared table just insert ["ValveBiped.Bip01_Neck"] = { x = 0, y = 0, z = -100} into table
local tbl = {} --declares "tbl" as a table tbl["ValveBiped.Bip01_Beck"] = {x = 0, y = 0, z = -100} --table variable["key"] = data
tbl["ValveBiped.Bip01_Head1"] = { x = 0, y = 0, z = 100 }
thanks for your help
Sorry, you need to Log In to post a reply to this thread.