CLuaParticle.SetCollideCallback
From GMod Wiki
| Function | |
| Syntax | CLuaParticle:SetCollideCallback( Function callback ) |
| Description: | |
| Sets a particle's collision callback. | |
| Returns: | nil |
| In Object: | Cluaparticle |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CLuaParticle.SetCollideCallback]CLuaParticle.SetCollideCallback [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You must enable collisions on the particle for this to be useful and it will only collide with the world.
- The particle, the hit position and the hit normal are passed as arguments to the callback.