rpg-x2/RPG-X2 Lua Documentation/examples/fusToff2.lua

10 lines
332 B
Lua
Raw Normal View History

2011-06-01 12:20:56 +00:00
function InitGame(levelTime, randomSeed, restart)
-- adjust the model number
local ent = entity.FindBModel(22);
if ent == nil then return;
ent:SetKeyValue("classname", "func_forcefield");
-- setting the spawnflags is optional
-- only change them if you have to
ent:SetKeyValue("spawnflags", "0")
entity.CallSpawn(ent);
end