I know this is probably really simple but I was wondering if anyone could tell me how to set the position of an attached particle effect? My code:
function jobFx(ply)
if ply:Team() == TEAM_GUN then
ParticleEffectAttach( "mr_smallsmoke_1_noise", 1, ply, 1 )
end
end
It spawns at the player's feet, I'd like to raise it into the torso/back a bit while keeping the attachType
ParticleEffectAttach
Also:
ParticleEffect
I've tried the ParticleEffect since it has vector/angle arguments and set them to ply:SetPos() and ply:SetAngles(); but, my guess is that because it isn't being updated every frame it's not able to follow the entity?
Your code:
ParticleEffectAttach( "mr_smallsmoke_1_noise", 1, ply, 1 )
Let's take a look at the wiki:
https://files.facepunch.com/forum/upload/1804/3111b939-b88d-41d9-ac6f-68b1f4940da3/image.png
Yes, I want it to attach to the player and follow them, I'm talking about the last argument:
https://files.facepunch.com/forum/upload/451824/d9b9073a-3a26-48b6-a910-573cc847da5e/image.png
It's set to 1, attachmentID is supposed to be eyes(1) right?
https://files.facepunch.com/forum/upload/1804/714ee4cf-fa28-43ee-85f5-082a26547803/image.png
Your attachment is not used with the attachment type 1 (PATTACH_ABSORIGIN_FOLLOW)
Would it be possible to set the position based on the attachmentID using Entity/GetAttachment?
So let's say I say the attachmentID to 3 but I want to move it up or down on the y axis, how would I tell ParticleAttachEffect that information?
Sorry, you need to Log In to post a reply to this thread.