• ChatBoubble help
    0 replies, posted
Hey, I got this working from a thread. But could anyone of you guys help me make the boubble only be stright over the players head? No matter where the player is looking? Since the SetParrent does that, and if I remove it. It's correctly, except for that it doesn't update my position, so if I'm walking meanwhile typing the chat boubble would only stay there I started to type. Thanks for helping! [lua] --SERVERSIDE AddCSLuaFile( "autorun/client/cl_chatbubble.lua" ) local HoverHeads = {} concommand.Add("start_chatting",function(ply,cmd,args) if not (HoverHeads[ply]) then local ent = ents.Create("prop_physics") HoverHeads[ply] = ent ent:SetModel("models/extras/info_speech.mdl") ent:SetMoveType(MOVETYPE_NONE) ent:SetNotSolid(1) ent:AddEffects( EF_ITEM_BLINK ) ent:AddEffects( EF_NOSHADOW ) ent:SetPos(ply:LocalToWorld(Vector(0, 0, 100))) ent:SetAngles(ply:GetAngles()) end end ) concommand.Add("stop_chatting",function(ply,cmd,args) if (HoverHeads[ply] and HoverHeads[ply]:IsValid()) then HoverHeads[ply]:Remove() HoverHeads[ply] = nil end end ) hook.Add("Tick","SpinMeRightRound",function() for k,v in pairs(HoverHeads) do if (v:IsValid()) then v:SetAngles(v:GetAngles() + Angle(0,3,0)) end end end) [/lua]
Sorry, you need to Log In to post a reply to this thread.