G.ParticleEffectAttach
From GMod Wiki
Revision as of 10:34, 7 September 2011 by ClavusElite (Talk | contribs)
Function | |
Syntax |
ParticleEffectAttach( String name, Enum attachType, Entity entity, Integer attachmentID ) Where is this used? |
Description: | |
Creates a particle effect using the Orange Box particle system and attaches it to an entity at the specified attachment. | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.ParticleEffectAttach]G.ParticleEffectAttach [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You must precache the particle system shared (the name is not the file name, but rather the name in the file)
- You should be aware that this a wrapper for an effect.
- "attachType" is one of the following enums :
SHARED | 0000000000000000 | 00000000000000000 | PATTACH_ABSORIGIN -- The particle system will be placed at the position of the entity. SHARED | 0000000000000001 | 00000000000000001 | PATTACH_ABSORIGIN_FOLLOW -- The particle system will also follow the entity. SHARED | 0000000000000002 | 00000000000000010 | PATTACH_CUSTOMORIGIN SHARED | 0000000000000003 | 00000000000000011 | PATTACH_POINT -- The particle system will be put at the position of the attachment specified. SHARED | 0000000000000004 | 00000000000000100 | PATTACH_POINT_FOLLOW -- The particle system will also follow the entity. SHARED | 0000000000000005 | 00000000000000101 | PATTACH_WORLDORIGIN
- To find the attachmentID for a particular model, look at Entity.LookupAttachment.