• ParticleEmitter appearing clientside only
    4 replies, posted
I'm trying to make smoke appear from my feet but the smoke is only appearing for me and not for other people in the server. Using ParticleEmitter():Add by itself doesn't seem to be doing that. Here's the code : [CODE] local Up = self.Owner:EyeAngles():Up() local Foot1 = self.Owner:LookupBone("ValveBiped.Bip01_R_Foot") local Foot2 = self.Owner:LookupBone("ValveBiped.Bip01_L_Foot") local Foot1Pos = self.Owner:GetBonePosition(Foot1) local Foot2Pos = self.Owner:GetBonePosition(Foot2) Emitter = ParticleEmitter(self.Owner:GetPos()) local p //Right foot p = Emitter:Add("particles/smokey", Foot1Pos + Up*-3) p:SetDieTime(1+math.random()*0.5) p:SetStartAlpha(180+math.random(55)) p:SetEndAlpha(0) p:SetStartSize(8+math.random()*3) p:SetEndSize(2+math.random()*10) p:SetRoll(math.random()*3) p:SetRollDelta(math.random()*2-1) p:SetVelocity( Up*-10 ) //Left foot p = Emitter:Add("particles/smokey", Foot2Pos + Up*-3) p:SetDieTime(1+math.random()*0.5) p:SetStartAlpha(180+math.random(55)) p:SetEndAlpha(0) p:SetStartSize(8+math.random()*3) p:SetEndSize(2+math.random()*10) p:SetRoll(math.random()*3) p:SetRollDelta(math.random()*2-1) p:SetVelocity( Up*-10 ) [/CODE]
[QUOTE=Handsome Matt;44766237]Because the code is only being called on that one client.. You need the server to tell all the other clients that they need to see this.[/QUOTE] Hmm Is there a way to network emitters with net libraries?
Alright thank you.
Sorry, you need to Log In to post a reply to this thread.