mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-11-23 12:52:09 +00:00
10 lines
No EOL
335 B
Lua
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 |