• Some few bugs and q..
    3 replies, posted
Hi guys i have some problems with my gamemode.. :) So first i have made a bot and its like there is nocollide on it.. here is the bot code [lua] -- Help Bot ENT.Type = "anim" ENT.Base = "base_entity" ENT.PrintName = "Bot 1" ENT.Author = "Grunewald" ENT.Contact = "www.bizen.dk/forums" ENT.Spawnable = false ENT.AdminSpawnable = true ENT.RenderGroup = RENDERGROUP_OPAQUE AddCSLuaFile( "shared.lua" ) /*--------------------------------------------------------- Name: Initialize ---------------------------------------------------------*/ function ENT:Initialize() self:SetModel("models/player/gman_high.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_NONE) self:SetSolid(SOLID_VPHYSICS) local phys = self:GetPhysicsObject() if phys:IsValid() then phys:Wake() end end function ENT:Use( activator, caller ) SendUserMessage("TheDermaMenu", activator) end if(CLIENT)then function ENT:Draw() self.Entity:DrawModel() end end [/lua] and here is the spawning code [lua] function GM:InitPostEntity() local bot1 = ents.Create( "bot1" ) bot1:SetAngles( Angle(0, -116, 0) ) bot1:SetPos( Vector(-2494, -2069, -131) ) bot1:Spawn() end [/lua] and second.. you know when a player dies it shows up in right corner.. how can i remove that? thierd the bot eye's how can i made them point same direction as the bot's angle`? (the bot is on rp_downtown_v2)
snip
You need to script an SNPC to do what you want to do, not an entity
but the derma menu works.. and i did just find thise two.. but i don't know how to use them.. [url]http://wiki.garrysmod.com/?title=Entity.EyePos[/url] [url]http://wiki.garrysmod.com/?title=Entity.EyeAngles[/url]
Sorry, you need to Log In to post a reply to this thread.