rpg-x2-rpgxef/RPG-X2 Lua Documentation/oldfiles/beta844ff/examples/fusToff2.lua
Walter Julius Hennecke 27269ee319 initial commit
2012-05-05 13:49:28 +02:00

10 lines
No EOL
332 B
Lua

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