Halo Esports Wiki

We are currently performing extensive maintenance to this wiki and as a result there will likely be errors. Please be patient while we work to fix all problems.

READ MORE

Halo Esports Wiki
Advertisement

Documentation for this module may be created at Module:InstantiateEntity/doc

local util_args = require("Module:ArgsUtil")
local util_vars = require("Module:VarsUtil")

local p = {}
function p.main(frame)
	local args = util_args.merge()
	local Entity = require('Module:' .. args.entityType)
	local object = Entity(args[1], args)
	if not args[2] then
		return object:get(args.len)
	end
	return object[args[2]](object, args)
end
return p
Advertisement