Def attach

From The DarkMod Wiki
Revision as of 17:10, 1 August 2008 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

def_attach is used to attach an entity to another entity at spawning the first entity.

Example

       "def_attach"                    "light_candleflame"     // The entity class we want to spawn and attach
       "pos_attach"                    "flame"                 // At the attach point called "flame"...
       "attach_pos_1_name"             "flame"                 // ... which is defined here.
       "attach_pos_1_origin"           "0 0 15"                // Offset the flame X units in the Z direction

Optionally, you can set the rotation of the attached entity with:

       "attach_pos_1_angles"           "0 0 90"                // rotated 90° around the z-axis