• Special Effects - Achievement Unlocked one?
    8 replies, posted
Hi, on either garrysmod or tf2 when you unlock an achievment you get like confetti around you. Any way to access this in garrysmod?
Yep you can access it and I think its this [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index09d2.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index09d2.html[/URL] then you use ParticleEffect( "bday_confetti",Vector(0,0,0),Angle(0,0,0),nil) dunno if this is any help but I tried :)
Two attempts. First: Ran this clientside: [lua]ParticleEffect( "bday_confetti",Entity(1):GetPos() ,Angle(0,0,0), Entity(1))[/lua] Recieved the red crosses Second: Ran this serverside: [lua]PrecacheParticleSystem("bday_confetti")[/lua] Followed by this clientside: [lua]ParticleEffect( "bday_confetti",Entity(1):GetPos() ,Angle(0,0,0), Entity(1))[/lua] Nothing came up, no effect at all Although after every function i ran this came up. (ParticleEffect & Precache) [code]Attempting to create unknown particle system 'bday_confetti' [/code]
You need TF2 mounted.
TF2 is mounted
Did you do [URL="http://wiki.garrysmod.com/page/game/AddParticles"]game.AddParticles[/URL]?
Which file is the confetti held in? And when i do a custom particle i get this return. UtlBuffer is the wrong type!
[QUOTE=Science;40574585]Which file is the confetti held in? And when i do a custom particle i get this return. UtlBuffer is the wrong type![/QUOTE] No idea. You can try searching for it using particle editor, but what I do is just loop through all of them and include all of them.
[CODE]//Shared game.AddParticles("particles/achievement.pcf" ) PrecacheParticleSystem( "achieved" ) //Client ParticleEffect("achieved",vector_origin,Angle(0,0,0),nil)[/CODE] Works for me.
Sorry, you need to Log In to post a reply to this thread.