rpg-x2/RPG-X2 Lua Documentation/examples/SpawningEnts.lua
2011-06-01 14:20:56 +02:00

7 lines
No EOL
179 B
Lua

function Example()
local ent = entity.Spawn()
if ent == nil then return;
ent:SetKeyValue("classname", "info_notnull");
mover:SetPosition(0, 0, 0);
entity.CallSpawn(ent);
end