mirror of
https://github.com/UberGames/RPG-X2.git
synced 2025-02-09 00:11:02 +00:00
10 lines
332 B
Lua
10 lines
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
|