View Single Post
Old 11-25-2012, 08:26 PM   #2308
NBC011795
 
Join Date: Nov 2011
Reputation: 29
Posts: 21
Ok, I figured it out, I'll post it below so that anyone who needs it can use it, Maybe you could also add it to the list on the FAQ?

Code:
$attachment "Name of attachment" "Name of bone" 0 0 0 rotate 0 0 0

$keyvalues {
    particles
    {
        effect
        {
            name            "drg_pipe_smoke"
            attachment_type        follow_attachment
            attachment_point    Name of attachment
        }
    }
}
Where it says "Name of" is up to you to name, for the "Name of bone" you put the name of the bone that you want the particles attached to, and the three zeros after it offset the location that the particles spawn from, the first zero goes left/right, the second goes up/down, the third goes forward/backward,
The three zeros after those are for rotation, but I do not know which slot rotates it which direction, but I am sure you can figure it out just by playing with it a little.

You can read more about the $attachment command here: https://developer.valvesoftware.com/wiki/$attachment

Last edited by NBC011795: 12-11-2012 at 02:28 PM.
NBC011795 is offline   Reply With Quote