rpg-x2/RPG-X2 Lua Documentation/oldfiles/beta844ff/examples/fusToff.lua
Harry Young 45005c64b9 restructuring of lua-doku-folder
-put the old files in a subfolder
-put my new files in the main folder


Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
2011-10-29 10:44:19 +02:00

10 lines
No EOL
335 B
Lua

function InitGame(levelTime, randomSeed, restart)
-- adjust the targetname
local ent = entity.Find("forcefield1");
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