Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i implement this table hierarchy by script?

Asked by 4 years ago

how can i implement that hierarchy by code? Im trying to implement parsers which gets the big chunk of data table and create smaller data tables like this. But i dont know how can i create this hierarchy in lua


local info = {} info.WeaponData = { Pistol_01 = { Damage = 50, ClipSize = 7, ShootingType = Single, }, AutoRilfe_01 = { Damage = 15, ClipSize = 30, ShootingType = Auto, } } return info

Answer this question