• Spawning NextBot via Script, Help!
    4 replies, posted
I've been trying to create a spawner using an entity and a ents.Create("nz_risen") function. Upon creating the entity, it gives me nav mesh error, even after when I do nav_generate and I am able to spawn in by spawn menu. I have no idea how to make a spawner. Please Help Here the entire Code : [QUOTE]-- Zombie Spawn AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) self:DrawShadow(false) local slowzombie = ents.Create("nz_slow_risen") if (!IsValid( slowzombie )) then return end slowzombie:SetPos(Vector(0,0,100)) slowzombie:Spawn() end function SpawnZombies() end function ENT:Think() end[/QUOTE]
someone plz?
[code] local ent = ents.Create("nz_risen") ent:SetPos(Vector(0,0,0)) if (IsValid(ent)) then ent:Spawn() end [/code] this what you want?
StickmanJohn, thank you for the response, but it still gives me the same error.
you never posted your error
Sorry, you need to Log In to post a reply to this thread.