rpg-x2/RPG-X2 Lua Documentation/oldfiles/beta844ff/examples/SpawningEnts.lua

7 lines
179 B
Lua
Raw Normal View History

2011-06-01 12:20:56 +00:00
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